cancel
Showing results for 
Search instead for 
Did you mean: 

Layered Navigation based on Categories

Layered Navigation based on Categories

Hi,

 

can we can select/activate for which category the attribute should appear in the left hand navigation? Eg: I want the product attributes to appear only in the final sub category (3rd or 4th) and i want some attributes to show only in the first and second level categories and i should be able to select where the attribute should appear on the left hand navigation

 

How this can be done?

3 REPLIES 3

Re: Layered Navigation based on Categories

Hi @gkarthick87 ,

 

You can achieve the functionality by custom modification or using any third-party extension.

 

https://marketplace.magento.com/zestardtech-module-filterpercategory.html

 

Check the above extension demo before finalizing it.

 

And for Customization

https://magento.stackexchange.com/questions/149999/magento-2-remove-category-filter-from-list-page-f...

Check the above link in which we are removing categories filter from layered nav.

You need to add the conditions to the category levels and check for the filter for adding show/hide logic.

 

Hope this helps you!

Problem Solved! Click on  `Kudos` & `Accept as Solution`!

 

 

Re: Layered Navigation based on Categories

How we can add this on backend? The customization URL is telling about only frontend. 

Refer this image

https://marketplace.magento.com/media/catalog/product/cache/adc9a2293be371a515eb30a463d80c57/s/t/ste...

Re: Layered Navigation based on Categories

Hi @gkarthick87,

 

For this, you need to create new category attribute which will multiple attributes I'ds which you want to show on that particular category.

1. Create category attribute with custom modal options.

2. In custom modal select all attributes which we are using in the layered navigation.

3. In category select the attribute and save the data and fetch the same information on frontend and perform the logic.

 

This is little tricky changes according to development, if you have a good knowledge of customization in magento 2. Then try to perform above steps else go with third party extension.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!