Thursday, November 17

How to Add Thumbnail Image in Magento Transactional Email

Here is the script to get Thumbnail Image in Magento Transactional Email

<?php //added for sending image with order
$product = Mage::getModel('catalog/product')
->setStoreId($_item->getOrder()->getStoreId())
->load($_item->getProductId());
?>
<p align="center"><img src="<?php echo Mage::helper('catalog/image')->init($product, 'image')->resize(50); ?>" width="50" height="50" alt="" /></p>
add this snippet below

<td align="left" valign="top" style="padding:3px 9px">

Please allow Display images in your email
Hope it Helps... Thanks...

No comments:

Post a Comment