Suppose color and price and manufacturer are three attribute codes.
black and blue are attribute values for color.
$0-100 and &101-200 are attribute values for price.
hp and dell are attribute values for price.
On category page, in filter section if I'm selecting attribute values black and &101-200. How can I get corresponding attribute codes?
In filter.phtml file sing this code I'm getting selected attribute code but not the attribute value in a proper format.
<?php
$appliedFilters = Mage::getSingleton('catalog/layer')->getState()->getFilters();
foreach ($appliedFilters as $item) {
$items[] = $item->getFilter()->getRequestVar();
}
foreach ($items as $item) {
echo ($item."<br>");
}