Magento Development and Coding
Magento 'Shop by Brand' in SideBar: First, create a template file, label it productbrand.phtml then keep it in catalog/product folder after which you can copy the code in it given below, also paste it in your productbrand.phtml. Make use of the product brand and include it in the database, which needs a label of all the brands you are interested to include and use it to make a comprehensive working out with brands mentioned of all items. <div> <div> <h4> <span>Product Brands</span></h4> </div> <div style="padding-left:8px;"> <?php $product = Mage::getModel('catalog/product'); $attributes = Mage::getResourceModel('eav/entity_attribute_collection')->setEntityTypeFilter($product->getResource()->getTypeId())->addFieldToFilter('attribute_code', 'manufacturer'); $attribute = $attributes->getFirstItem()->setEntity($product->getResource());