B-219 Sec-55 Noida, India

Display List Of All Manufacturers In Magento

Suppose you want to display the list of all the Manufactures. Use the code below to display the Manufacture

$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>”;


(Visited 54 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.