Here is code to control layered navigation

January 31st, 2010 Categories: Magento

Hi there,
it seems a few people want to control the way layered navigation works, here is some code that will let you:
1. Define any attributes that you want to be displayed as a dropdown list
2. Set a threshold limit for the attributes, so that if this threshold is met, then automatically display as a dropdown list

This code needs to go into “app/design/frontend/default/[YOURTHEME]/template/catalog/layer/filter.phtml

You will see that I have added case ‘Shoe Size’ – by doing this anytime the Shoe Size attribute is displayed it will be displayed using a dropdown. For example you could add:

Tags:
No comments yet.

Leave a Comment