Custom Attributes in New Product Grid

Last modified by Androfire on Thu, June 24, 2010 16:46
Source|Old Revisions  

Here is how to display a custom attribute as part of the grid of new products.

First, edit app/code/core/Mage/Catalog/etc/config.xml and find this line

<product> <collection> <attributes>

You will see a list of attributes: name, url_key, price, etc. Add a line with the name of your attribute in it:

<NameOfAttribute />

Next, edit app/design/frontend/theme/theme/template/catalog/product/new.phtml

Wherever you need it to appear, type in this code:

<?php echo $_product→getNameofAttribute();?>

This method has been tested on version 1.2.




 

Magento 2 GitHub Repository

Magento Job Board - Some sort of tag line goes here

Latest Posts| View all Jobs