Magento News

 

Magento: fetching manufacturer/brand from database

I have this code from Mukesh Chapagain: link here

$_product = Mage::getModel('catalog/product')->load(PRODUCT_ID);
$manufacturerName = $_product->getAttributeText('manufacturer');
$manufacturerId = $_product->getManufacturer();

This seems not to pick up the manufacturers even though I have them as attributes. Is it due to the fact that the manufacturer field is a drop-down?

any help in getting manufacturer attribute will be appreciated

Magento: fetching manufacturer/brand from database

Possibly Related Posts:


 

Leave a Reply