Post by robster » Fri May 23, 2014 11:46 pm

Hi

Is there a way I can add an image to the order status update email that the customer receives BUT only for one specific status.

So for example if when I update status of an order in admin to 'Shipped' I want the email to have a shipped image in it but different images for different order stauses.

I know I can add images manually (along with custom text) at the order update stage manually using 'comments' ckeditor but I want this to be an automated function.

Possible?

Robster

I know my place...!


User avatar
Active Member

Posts

Joined
Tue Jul 13, 2010 8:08 pm
Location - North Yorkshire, UK

Post by uNeverNo » Sat May 24, 2014 3:38 am

Yes, it is possbible. But first of all you need to change the order status update emial into a HTML one by replacing the setText() function with the setHtml() one.

Then use a switch statement to insert different images on different conditions.

Post in the forum yet no one's willing to help? Contact me for free opencart coding or configuration assistance. Reach me at uneverno1986#gmail.com(replace # with @). But no free extension development request. Sorry about that :( It could take a few days to make a complicated mod.

If you feel I have helped, a donation is optional and appreciated. Image


User avatar
Active Member

Posts

Joined
Sun Sep 23, 2012 10:49 am
Who is online

Users browsing this forum: No registered users and 142 guests