Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Adding attributes in product list
 
C3 Media
Member
 
Avatar
Total Posts:  52
Joined:  2008-03-15
Bristol, UK
 

Hi, here is the code I am using to load extra attributes in the product list:

$this->addAttribute('my_attribute_code');

However, it doesn’t seem to be working as when I use the code below I am returned a blank value (I have checked the attribute value is there in the admin):

foreach ($_productCollection as $_product): 
        print 
"Attribute value: " $_product->getData('my_attribute_code');

Can anyone shed some light on this?

Jamie

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top