Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

[Magento] How to get all Manufactures in Magento

Hello Friends,

Are you working with Magento and wanted to get all manufacturers list? If yes then, you are at the right place to get the solution for it. To get all manufactures lists in Magento, you just need to take below code. If you have questions like this…How to get all Manufactures in Magento, All manufactures in Magento, Magento get manufacturers, Get manufactures in Magento, Solution for Getting Manufactures in Magento, Manufactures Products in Magento. Below is the solution for it.

Are you working with Magento and wanted to get all manufacturers list? If yes then, you are at the right place to get the solution for it. To get all manufactures lists in Magento, you just need to take below code. If you have questions like this…How to get all Manufactures in Magento, All manufactures in Magento, Magento get manufacturers, Get manufactures in Magento, Solution for Getting Manufactures in Magento, Manufactures Products in Magento. Below is the solution for it.

$product = $this->getProduct();
 $attributes = Mage::getResourceModel('eav/entity_attribute_collection')
                  ->setEntityTypeFilter($product->getResource()->getTypeId())
                  ->addFieldToFilter('attribute_code', 'manufacturer');
$attribute = $attributes->getFirstItem()->setEntity($product->getResource());
$allmanufacturers = $attribute->getSource()->getAllOptions(false);

$allmanufacturers contains all manufacturers list. Let me know if you have any other issue in Magento.

Thank You!

Share:

No Comments Yet.

Leave a Reply

Your email address will not be published.