Adding attribute to the new order notification email in magento.

Today for purpose of one my freelancing project I have added attribute to new order Email . So i am going to share this.

Just you have to work on two file only 1. app->design->fronend->themname->default->template->email->order->items.phtml

in here you have add column heading

then you have to go 2. app->design->fronend->themname->default->template->email->order->items->order->default.phtml

here to add attribute you should have write code like


<?php $product = Mage::getModel('catalog/product')->loadByAttribute('sku', $_item->getSku(), array('Attribute_code')); ?>
 <?php echo $product->getData('Attribute_code'); ?>

&nbsp;

hope it will help you.

for more magento tutorial visit: http://blog.free-extension.com/

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: