0

We are sending abandoned cart email to customers successfully with help of below code. In email we are sending Product image.

<table>
<?php foreach ($this->getQuote()->getAllVisibleItems() as $item): ?>
<tr>
<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>
</td>
</tr>
<?php endforeach ?>
</table>

We are allowing Customer to Upload Custom image on Product Image & once customer Add to cart that product , We need to send Custom Image in Abandoned Cart email.

we are using below code for that , but its not sending custom image in email

<?php if ($this->getQuoteImage($item)): ?>
    <img src="<?php echo $this->getQuoteImage($item) ?>" />
<?php endif ?>

we are saving custom image in table : sales_flat_quote_item_option & column : value

enter image description here

image is saving in this path : media/custom_options/quote/2/0/image1.png

what i am missing to send custom image in Abandoned cart email.

1

Hello Are you placing the following code in email template?

<table>
<?php foreach ($this->getQuote()->getAllVisibleItems() as $item): ?>
<tr>
<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>
</td>
</tr>
<?php endforeach ?>
</table>
| improve this answer | |

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.