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

[Solved]Problem getting product custom attribute in catalog list but not catalog detail
 
cyberkoa
Jr. Member
 
Total Posts:  10
Joined:  2009-12-07
 

I have created a custom attribute free_shipping , and I have use this attribute to show a statement that “price include tax with free shipping” in price.phtml

It works fine in product detail page.

The problem is , it does not work in Product list .

In product list, it load the price.phtml also , the $_product in price.phtml seems like does not contain the new custom attribute, and the logic failed with because the value cannot be retrieved properly.

Could it be cache problem ?

Anybody has the same problem ?

 
Magento Community Magento Community
Magento Community
Magento Community
 
cyberkoa
Jr. Member
 
Total Posts:  10
Joined:  2009-12-07
 

Problem solved. I just need to enable the “Use in Product Listing” to “Yes” in the custom attribute.

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