Magento Sort Products by Attribute Set

To Sort Products by Attribute Set, Update the default toolbar files

Mage/Catalog/block/Product/List/Toolbar.php

getRequest()->getParam('attrset', 0);
        if(is_numeric($attr_set_id) && ($attr_set_id != 0)){
            $this->_collection->addFieldToFilter('attribute_set_id', $attr_set_id);
        } 
?>

in method setCollection($collection) add above code before return $this;

Now in template/catalog/product/list/toolbar.phtml file add all attribute set to select



Posted

in

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *