Thursday 11 June 2015

How to add a link or an image to customize the mails sent to customers?

PrestaShop enables you to automatically send a large number of mails to your customers (order confirmations, site subscriptions, out of stock notifications, etc.). It might be useful to customize these mails: adding images, links to survey forms or information pages (blogs, news, etc.).
Let’s say your company wants to customize the e-mail sent automatically to customers after a purchase, in order to redirect them to a survey form.
To add a link in the mails sent to your English-speaking customers, you have to:
1. Go to the /mails/en directory from your shop root.
2. Edit the HTML template relative to the mail you want to modify: for instance, order_conf.html is the e-mail sent for new orders.
3. Insert the link to the survey right in the HTML code (static):
<a href=”http://www.myshop.com/survey.php”>Click here if you want to participate to our survey !</a>
or a dynamic link with your logo:
<a href=”{shop_url}” title=”{shop_name}”><img alt=”{shop_name}” src=”{shop_logo}” style=”border:none;”></a>
4. (Optional) To change the default color (which is pink: #DB3484), change the hexadecimal value to your preferred color value.
5. Save the file.
Now the link will be added in every new mail sent after a purchase.

No comments:

Post a Comment