Ecommerce sites are alive. They evolve and change over time as needs and requirements change. Sometimes the original intention of an attribute evolve into something else entirely. For some systems, the process of evolution can be painful. There is good news for Magento users, however. Magento makes it simple to adapt the platform as your business needs change and evolve.
Sometimes an attribute has a simple function, such as showing a brand on a product detail page. Eventually, it becomes evident that your customers want searching and sorting via brands, (and other comparable attributes) on your site. What do you do? Simple! Update the attribute! Magento is great like that.
To make Magento layered navigation attributes, simply do the following:
- make sure it’s dropdown, multiple select, or price.
- Set “Use in layered Navigation” to (Filterable with results) or (filterable no results) on the admin page. (Programmatically: set is_filterable to 1 or 2.)
- After either one, make sure to reindex the product attributes index, as it’s what’s used to create the layered nav.
- If it’s already part of an attribute set with products, you’ll have to reindex the product flat data as well.
That’s it! Sometimes it IS just that simple.
Until next time…