Once Registered user upload custom image in product view page & click on custom button "save design" , we are sending an email to customer. its working fine.

we are saving customer id, product name, custom image path in custom table : "my_designs"

enter image description here

but issue is Product image is not displaying in email.

<?php echo Mage::getModel('catalog/product')->load($this->getProductId())->getName() ?>
<image src="<?php echo $this->getValue() ?>">

we have preview to see all emails in backend, in preview product's custom image is displaying. but in email its not displaying.

side note : we are sending Abandoned cart email after customer click on "add to cart", in that email we are successfully custom image with help of below code :

<table width="0" border="0" cellspacing="5" cellpadding="10">
<?php foreach ($this->getQuote()->getAllVisibleItems() as $item): ?>
<td><img src="<?php echo $this->getImageUrl($item->getProduct(), 100) ?>"/></td>
<td valign="top">
    <p><a href="<?php echo $item->getProduct()->getProductUrl() ?>"><?php echo $item->getName() ?></a></p>
    <b><?php echo $this->getFormattedPrice($item->getPrice()) ?></b>
<?php if ($this->getQuoteImage($item)): ?>
    <td>Your Design : <img src="<?php echo $this->getQuoteImage($item) ?>" /></td>
<?php endif ?>
<?php endforeach ?>

Backend preview :

enter image description here

  • what exactly you want?? make it bit clear – Gopal Patel Mar 25 '17 at 11:57
  • @GopalPatel updated question, please check once.... – Baby in Magento Mar 25 '17 at 12:10
  • Can you add your current email preview and where you want to show custom image in current email – Jaimin Sutariya Mar 26 '17 at 17:21
  • @JaiminSutariya i need to display custom image in any place in email..... please check preview image in question. – Baby in Magento Mar 26 '17 at 19:03
  • Please add your email sending code which you are using to send mail on save design. also add your email template code to review – Jaimin Sutariya Mar 27 '17 at 5:19

You need to update your email template code from,

<?php echo Mage::getModel('catalog/product')->load($this->getProductId(‌​))->getName() ?> <image src="<?php echo $this->getValue() ?>">


<?php echo Mage::getModel('catalog/product')->load($this->getProductId(‌​))->getName() ?><img src="<?php echo $this->getValue() ?>" alt="<?php echo Mage::getModel('catalog/product')->load($this->getProductId())->getName(); ?>" />

As There is no HTML tag with name image, you need to use img tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.