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
Leave a Reply