tom52 Posted October 19, 2015 Share Posted October 19, 2015 Hello, Whenever I set the status to shipped and the email sent to customer, the line to "Order history" and "My account" don't work, its not clickable. When I click insert link, it said (%7Bhistory_url%7D) (%7Bmy_account_url%7D) am suppose to change the link? Another thing, whenever a customer place an order they don't get the confirmation email, any idea what to do to fix it? Thank you Tom Link to comment Share on other sites More sharing options...
Simonas Invertus Posted October 20, 2015 Share Posted October 20, 2015 Code %7B is Left curly brace { and %7D is right curly brace } When prestashop reads code it replace code {my_account_url} with link to user account but for some reason if you edit email templates in backOffice it changes curly braces to code values and later can not insert links. I found that the best solution is to edit template files and change: %7B to { %7D to } To make it work again. Maybe somebody can offer solution how to do the same from backOffice. 1 Link to comment Share on other sites More sharing options...
tom52 Posted October 20, 2015 Author Share Posted October 20, 2015 Code %7B is Left curly brace { and %7D is right curly brace } When prestashop reads code it replace code {my_account_url} with link to user account but for some reason if you edit email templates in backOffice it changes curly braces to code values and later can not insert links. I found that the best solution is to edit template files and change: %7B to { %7D to } To make it work again. Maybe somebody can offer solution how to do the same from backOffice. Thanks, but I tried it click saved and it go back to %7Bmy_account_url%7D, it will not save the change. Any idea on why it don't save? Thanks Link to comment Share on other sites More sharing options...
Simonas Invertus Posted October 20, 2015 Share Posted October 20, 2015 I am not sure if you did what I said. As I said editing in backOffice does not work, so you have to connect to your FTP go to your_shop/mails/en/ and edit file shipped with notepad or some code editor. Link to comment Share on other sites More sharing options...
tom52 Posted October 20, 2015 Author Share Posted October 20, 2015 Hello, I edited shipped.html, here is the file, but not thing change. Is this the right file? <table class="table table-mail" style="width:100%;margin-top:10px;"><tbody><tr><td class="space" style="width:20px;padding:7px 0;"> </td><td style="padding:7px 0;" align="center"><table class="table" style="width:1293px;height:297px;" bgcolor="#ffffff"><tbody><tr><td class="logo" style="border-bottom:4px solid #333333;padding:7px 0;" align="center"><a title="{shop_name}" href="%7Bshop_url%7D"><span style="color:#000000;"> <img src="%7Bshop_logo%7D" alt="{shop_name}" /></span></a></td></tr><tr><td class="titleblock" style="padding:7px 0;" align="center"><span class="title">Hi {firstname} {lastname},</span><br /><span class="subtitle">Your order has been shipped</span></td></tr><tr><td class="space_footer" style="padding:0;"> </td></tr><tr><td class="box" style="border:1px solid #D6D4D4;background-color:#f8f8f8;padding:7px 0;"><table class="table" style="width:1272px;height:117px;"><tbody><tr><td style="padding:7px 0;" width="10"> </td><td style="padding:7px 0;"><h2 style="border-bottom:1px solid #D6D4D4;margin:3px 0 7px;text-transform:uppercase;font-weight:500;font-size:25px;padding-bottom:10px;"><span style="font-size:20px;text-transform:none;">Order {order_name} - Shipped</span></h2><p>Thank you for your order from xxxxxxx! We wanted to let you know that your order with the reference {order_name} has been shipped.</p><p>Thank you for shopping with {shop_name}! and we look forward to serving you in the future!</p></td><td style="padding:7px 0;" width="10"> </td></tr></tbody></table></td></tr><tr><td class="linkbelow" style="padding:7px 0;">You can review your order and download your invoice from the <a href="https://www.xxxxxxxxxxx.com/order-history">"Order history"</a> section of your customer account by clicking <a href="{my_account_url}">"My account" </a>on our shop.</td></tr><tr><td class="space_footer" style="padding:0;"> </td></tr><tr><td class="footer" style="border-top:4px solid #333333;padding:7px 0;"><span style="color:#000000;"><a href="%7Bshop_url%7D">{shop_name}</a> powered by <a href="http://www.xxxxxxxxxx/">xxxxxxxxx™</a></span></td></tr></tbody></table></td><td class="space" style="width:20px;padding:7px 0;"> </td></tr></tbody></table> Link to comment Share on other sites More sharing options...
Simonas Invertus Posted October 21, 2015 Share Posted October 21, 2015 First you should change this too '%7Bshop_url%7D' Also you need to edit both files .html and .txt because depending on your settings you get one or another. And I may mislead you this the path, because mails depends on your theme so the path would be: your_shop/themes/your_theme/mails/en/ en is English language and if you have other languages you should look them Link to comment Share on other sites More sharing options...
Recommended Posts