Magento: Get list of all manufacturers
Here is the code to list all the manufacturers.
$_product = $this->getProduct();
$attributes = Mage::getResourceModel('eav/entity_attribute_collection')
->setEntityTypeFilter($_product->getResource()->getTypeId())
->addFieldToFilter('attribute_code', 'manufacturer');
$attribute = $attributes->getFirstItem()->setEntity($_product->getResource());
$manufacturers = $attribute->getSource()->getAllOptions(false);
echo "<pre>"; print_r($manufacturers); echo "</pre>";
Related posts:
- Magento: Get manufacturer name and id from product
- Magento: How to get attribute name and value?
- Magento: Get height and width of Image
- Magento: How to get top rated products?
- jQuery: Grey out background and preview image as popup
- Magento: Get list of all Categories
- Magento: How to get list of all modules programmatically?
- Magento: Get parent id of simple product associated to configurable product
- Magento: Remove list or grid mode as display option
- Magento: Adding category attributes
