How To Display List Of All Manufacturers In Magento.?

Show List Of All Manufacturers In Magento:-

If you are looking to get all the list of specific manufacturers in the Magento E-Commerce site then use the following code to get the desired result.

$product = Mage::getModel('catalog/product');
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
                  ->addFieldToFilter('attribute_code', 'manufacturer');
$attribute = $attributes->getFirstItem()->setEntity($product->getResource());
$manufacturers = $attribute->getSource()->getAllOptions(false);
echo "<pre>"; 
echo "</pre>";



You may also like...

Leave a Reply

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