7

I need to remove the category filter in Layered Navigation, but I can't find a way to remove the filter option in the layout arguments.

Anyone knows the best way to do this?

3

Go to admin > Products > Categories

Select category you do not want to display in filter

go to tab Display Settings

set Is Anchor to NO

No

1
  • 1
    If I set this option the other filters not work, but I need them (price and color yes, category no) Jul 18 '16 at 8:38
-1

I found the solution, I checked name of each filter in phtml and print only I needed.

I extends Magento_LayeredNavigation module and modified phtml files are:

  • Magento_LayeredNavigation/templates/layer/view.phtml
  • Magento_LayeredNavigation/templates/layer/filter.phtml
1
  • That remove from the template, But in filter model that category included Bad performance.
    – Hidro Le
    Oct 31 '17 at 7:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.