Display Manufacture attribute in Magento frontend

Asked

Viewed 193 times

0

Work with the Magento a short time and also do not have a lot of knowledge yet and my case is the following: in the display list of the items would like to display the attribute manufacture of item.

I used the following code on list.phtm:

<?php
    echo $_helper->productAttribute($_product, $_product->getManufacturer() , 'manufacturer');
?>

But he shows me ID and not the name.

  • Try $_product->getAttributeText('manufacturer')

  • It worked beautifully and from what I see I can use it for any attribute now just by making a small change. Thank you

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.