Styling Magento's layered navigation

One of Magento's most used features is layered navigation, which allows customers to filter products at a category level based on your products' attributes (such as color, price, and size).

Enabling layered navigation in Magento categories

Before you can style Magento's layered navigation, you will need to ensure that your categories are configured to allow layered navigation.

To do this, log in to your Magento administration panel and navigate to Catalog | Manage Categories. From there, select the category you wish to enable layered navigation for, open the Display Settings tab, and set the Is Anchor field to Yes, as shown in the following screenshot:

Enabling layered navigation in Magento categories

Click on the Save Category button at the top-right corner of the screen to assign this change to the category.

Assigning attributes for layered navigation

Next, you need to ensure that the attributes used for the products in the category you altered previously are available for use in layered navigation. Navigate to Catalog | Attributes | Manage Attributes and select an attribute from the list (the example shown below uses price since this is used by products within our existing Tea bags category).

In the Frontend Properties panel, set the Use In Layered Navigation field to Filterable (with results) as shown in the following screenshot:

Assigning attributes for layered navigation

Tip

Setting this to Filterable (no results) will show attribute values in the layered navigation even if there are no results.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset