How to show all attribute after layered navigation filter in Magento
April 10, 2015 Magento Layered Navigation is really good for filter the product but problem is that, if we select any attribute like color or price all other attribute hide which are not related to selected attribute. To show all the attribute after filter please use the below code. In your frontend theme catalog/template/catalog/layer/filter.phtml replace content with below code:
In apply in app/code/core/Mage/Catalog/Model/Layer/Filter/Attribute.php , comment out below line:
$this->_items = array();
And replace the following in _getItemsData:
if ($this->_getIsFilterableAttribute($attribute) == self::OPTIONS_ONLY_WITH_RESULTS)
if (($this->_getIsFilterableAttribute($attribute) == self::OPTIONS_ONLY_WITH_RESULTS) && (!empty($optionsCount[$option['value']])))
Add the following method to app/code/core/Mage/Catalog/Model/Layer/Filter/Item.php:
public function isSelected()
$selected = Mage::getSingleton('core/app')->getRequest()->getParam($this->getFilter()->getRequestVar());if( $selected == $this->getValue() )
}Look like all this big task to do but once you complete above you will see the magic.Happy Coding :)
As an ecommerce website developer or magento website developer, sometime we get the a situation when we forget the magento website admin access detail. To reset the password of any...
How to fix layered navigation filer URL in Magento?
April 2, 2015
Magento is really good eCommerce CMS in terms of functionality. Layered Navigation is really good feature of Magento to filter the product in frontend side. Only problem with the layered navigation filter...
Why Hire an OpenCart Developer?
February 3, 2015
OpenCart – the platform of choice for top Online Stores and E-Commerce Portals Why OpenCart? Open Source Platform that is free Great Community Support SEO Friendly Extensive Documentation Support and...