0

I want to get catalog search active filters in catalog/layer/view.phtml.

How to do that?

1 Answer 1

0

To get active filter in catalog/layer/view.phtml below code is working for me :

...
$active_filters = $this->getLayer()->getState()->getFilters();
foreach($active_filters as $filter)
{
    $attributeModel = $filter->getFilter()->getAttributeModel();
    ...
}
...
1
  • how to get current product in that file? Sep 26, 2018 at 14:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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