Moshe - 22 November 2007 01:17 AM
@spider: if you want to add custom attributes to product listing, you will have to add them in the layout xml.
To save time we do not load all the available attributes for all product in the list, only necessary ones (name, image, url_key, etc.)
Edit main.xml, find handles <catalog_category_default> and <catalog_category_layered> and replace in both:
<block type="catalog/product_list" name="product_list"></block>
with:
<block type="catalog/product_list" name="product_list">
<action method="addAttribute"><code>custom_attribute</code></action>
</block>
You will need to repeat <action> tag for each additional attribute you wish to see in product list.
The only thing left is put the attribute in the list. To do so, open template/catalog/product/view.phtml and add your attribute this way: