Вопрос

Good morning, I want to add a filter of attributes like this.Like this I should put the attribute in static block first or how i can make it possible. Your answer will be very helpful. Thanks.

Это было полезно?

Решение

Magento already supports this out of the box.
It is called layered navigation. For category lists (where the categories are marked as "Is anchor" => 'Yes') and search results this happens automatically.
In order to have an attribute appear in the layered navigation, you need to mark it accordingly, by editing the attribute in the backend and setting the flag "Used in layered navigation" to "Yes".
but not all attribute types support this.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с magento.stackexchange
scroll top