0

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.

1 Answer 1

1

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.

3
  • Thank you for your answer. Actually i have seen a lot of your answers at this topic but a little bit difficult to understand. So, If i want to add advanced search on frontend how i can do it, Can you please explain me briefly. Thank you so much in advance.
    – Sandro
    Commented Jul 27, 2016 at 7:07
  • Welcome to SE. please don't mix questions. If this answer solved your problem, mark it as accepted. If you have other questions please ask them separately.
    – Marius
    Commented Jul 27, 2016 at 7:09
  • Thanks again, The attributes are showing in the sidebar but not as dropdown.
    – Sandro
    Commented Jul 27, 2016 at 7:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.