Magento 1.9 – How to Get Active Filters in catalog/layer/view.phtml

layered-navigationmagento-1.9

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

How to do that?

Best Answer

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();
    ...
}
...