Magento – Hide Specific Attribute Filters for Each Category

attributescataloglayered-navigation

i want to hide specific attribute filters for each one of my categories. Is that possible from category -> custom design -> Custom Layout Update ?

Best Answer

You can't hide specific attributes from the layered navigation using custom layout updates. At least not without any changes to the code (check out layer/view.phtml).

There are a few modules for a better layered navigation, and I know for sure GoMage Advanced Navigation has this feature.

I've also used custom code to filter out which attributes show up on certain categories and in what order - i think i used a helper and changed a few lines in layer/view.phtml. This would be pretty similar to using layout updates, although you might run into difficulties using the xml approach.

If you want to use custom code, I'd suggest adding an extra category attribute for setting the attributes that you want to hide and then using that field in layer/view.phtml.