Multiselect attributes with custom source models in layered navigation

Multiselect attributes with custom source models in layered navigation

Hello there!

Spoiler:
You can’t use a custom multiselect attribute with custom source model in layered navigation.
You can use either a dropdown attribute with custom source model or a multiselect without custom source model, but you CAN’T use a multiselect with custom source model.
Solution is here >>

Yesterday I found an interesting bug in Magento.
I have been working with this system for the last 4 or 5 years so far, but yesterday was the time I’ve observed this bug.
Of course, you know about layered navigation, custom attributes, and source model.

Read more about Multiselect attributes with custom source models in layered navigation

Creating a Custom API for Magento

Creating a Custom API for Magento

The Core API allows you to manage a set of common resources used in Magento. However, you may choose to have your own set of resources to manage, or you may wish to extend the Core API to handle additional resources.

This tutorial leads you through the process of creating a custom API for a customer module that handles basic customer information.

Note: This tutorial applies to v1 of the API.

To learn more about the Core API, to read Magento Core API calls.

For general information about the Magento API, go to the Introduction.

Read more about Creating a Custom API for Magento

Url friendly string

Url friendly string

If you need to transform some string to url-friendly string in Magento you just need to call method “formatUrlKey” from Mage_Catalog_Model_Product_Url class <?php $urlKey = Mage::getModel(‘catalog/product_url’)->formatUrlKey($string); ?> You can use this new variable $urlKey as url_key field for product or for some other attributes (for example: slug, sku, code etc)

New Magento 2.0

New Magento 2.0

Magento Enterprise Edition and Community Edition 2.0.1 are now available and feature important security and functional updates, including official support for PHP7.0.2. With PHP7, merchants can benefit from dramatic performance improvements, drastically reduced memory consumption, and brand-new language features. More information about PHP7 and other updates is provided in the COMMUNITY and ENTERPRISE EDITION release notes. There are also […]