magento get manufacturer name

magento get manufacturer name

In this post we will show you magento get manufacturer name, hear for magento get manufacturer name we will give you demo and example for implement.

how to get manufacturer name in magento

We need to use below code for get all the brand/manufacture name.

hear is code for get manufacturer name in magento

<?php
$get_product = Mage::getModel('catalog/product');
$get_attributes = Mage::getResourceModel('eav/entity_attribute_collection')
		  ->setEntityTypeFilter($get_product->getResource()->getTypeId())
		  ->addFieldToFilter('attribute_code', 'manufacturer');
$get_attribute = $get_attributes->getFirstItem()->setEntity($get_product->getResource());
$get_manufacturers = $get_attribute->getSource()->getAllOptions(false);
?>
 
<ul>
    <?php foreach ($get_manufacturers as $manufacturer_val): ?> 
        <li><?php echo $manufacturer_val['label'] ?></li>
    <?php endforeach; ?>
</ul> 

Hope this code and post will helped you for implement get manufacturer name. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve onlincode. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs onlincode.org

Leave a Comment

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

1  +  2  =  

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US