|
I put in a custom Free Shipping attribute. So for the product details page (...\template\catalog\product\view.phtml) I can call $_product->getAttributeText(’free_shipping’) and it returns either ‘Yes’ or ‘No’ (it’s a drop down).
But on the category page (...\template\catalog\product\view.phtml) making that call in the foreach($_productCollection as $_product) loop doesn’t work. This http://www.magentocommerce.com/wiki/how-to/add-attributes-to-product-grid#update_templates page seems to say that calling getAttributeText on a product object should work.
Any ideas?
|