I want to get catalog search active filters
in catalog/layer/view.phtml
.
How to do that?
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();
...
}
...