Jump to content

Adding product images into order confirmation email PS1.7.8.7


Recommended Posts

I was able to add product images into order confirmation email when I was using PS1.6, by editing the PaymentModule.php, order_conf_product_list.tpl and order_conf.html.

After upgrading to PS1.7.8.7, I did the similar modification.  However, the order confirmation email only shows the text of image url instead of an image.  Any suggestion is highly appreciated.

Thank you!

Sam

Link to comment
Share on other sites

 

Here is the code added into PaymentModule.php   

There was also an error from if (sizeof($cover['id_image'] >0).

image.png.e83bbc383891c3170f38315753277c79.png

 

Here is the code in order_conf_product_list.tpl

image.png.4bf324a3745f955591739c7f16681f4c.png

 

In the confirmation email, only the url text was displayed instead of a product image.

image.png.934285d320165cc9aef8d7ea3631d08f.png

 

Any suggestion is very appreciated. 

5 hours ago, 4you.software said:

Hi Sam.
And can you give us the code here?
How do we find what is wrong?

Sam

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...