Magento – Use layered navigation attribute filter only in specific categories

attributesfilterlayered-navigationmagento-1.9

Im am in the progress of making a gift finder. For that, I need to make some specific filterable attributes, that I would like to show in this category only (Gifts for men, Gifts for women, etc..)

What would be the best way to achieve this? Some check for category id in view.phtml or some hiding in catalog.xml and a custom xml-layout for the specific category to show it there?

Best Answer

Custom layout update for specific category will be a good idea. That way you will not require to add some specific category id conditions.

You can add in admin for specific category, in custom layout update field like

<reference name="category.products">
   <block type="module/block" name="gift_finder" template="catalog/product/gift_finder.phtml">
</reference>
Related Topic