c930586 Posted January 17, 2015 Share Posted January 17, 2015 Hi, I wanted to translate the email templates of my store. After editing the first HTML version, the system stopped showing the HTML code properly. Please see images attached. If I open the code with the browser it works properly. However, in both Prestashop and when I send a test email, the HTML version just shows a blue background. Am I missing anything? Thanks for your help. Robert Link to comment Share on other sites More sharing options...
vekia Posted January 17, 2015 Share Posted January 17, 2015 it's probably a case of magic quotes. please go to adv. parameters > configuration information section do you see there information about magic quotes, that it is turned on? Link to comment Share on other sites More sharing options...
c930586 Posted January 18, 2015 Author Share Posted January 18, 2015 Hi Vekia, Thanks for the reply. Yes, it says: magicquotes pdo_mysql What should I do? I am running 1.6.0.11 on a HostGator's shared server. (PHP 5.2.17; Apache; MySQL 5.5.40-36.1) Thanks. Robert Link to comment Share on other sites More sharing options...
c930586 Posted January 18, 2015 Author Share Posted January 18, 2015 Update: I have solved both magic quotes and pdo_mysql with this: https://www.prestashop.com/forums/topic/187699-solved-how-to-disable-php-magic-quotes/?p=928701 Nevertheless, although I see most of the HTML shown nicely, the logo is not sent in the emails yet. Any ideas with the logo portion of the html? Thanks. Robert Link to comment Share on other sites More sharing options...
vekia Posted January 18, 2015 Share Posted January 18, 2015 hello can you show full contents of the email (from translation tool) ? Link to comment Share on other sites More sharing options...
c930586 Posted January 18, 2015 Author Share Posted January 18, 2015 Yes, please see the code below.<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: 100%;" bgcolor="#ffffff"><tbody><tr><td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a style="color: #337ff1;" title="{shop_name}" href="%7Bshop_url%7D"> <img src="%7Bshop_logo%7D" alt="{shop_name}" /></a></td></tr><tr><td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: 'Open-sans', sans-serif; font-size: small;"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">El vostrE missatge pel servei d'atenció al client de {shop_name}</span> </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: 100%;"><tbody><tr><td style="padding: 7px 0;" width="10"> </td><td style="padding: 7px 0;"><span style="color: #555454; font-family: 'Open-sans', sans-serif; font-size: small;"> <span style="color: #777;"> El vostre missatge ha estat enviat correctament.<br /><br /><span style="color: #333;"><strong>Missatge:</strong></span> {message}<br /><br /><span style="color: #333;"><strong>ID de comanda:</strong></span> {order_name}<br /><span style="color: #333;"><strong>Producte:</strong></span> {product_name}<br /><span style="color: #333;"><strong>Fitxer adjuntat:</strong></span> {attached_file} </span> </span></td><td style="padding: 7px 0;" width="10"> </td></tr></tbody></table></td></tr><tr><td class="space_footer" style="padding: 0;"> </td></tr><tr><td class="linkbelow" style="padding: 7px 0;"><span style="color: #555454; font-family: 'Open-sans', sans-serif; font-size: small;"> Us respondrem tan aviat com ens sigui possible. </span></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;"><a style="color: #337ff1;" href="%7Bshop_url%7D">{shop_name}</a> desenvolupat amb <a style="color: #337ff1;" href="http://www.prestashop.com/">PrestaShop™</a></td></tr></tbody></table></td><td class="space" style="width: 20px; padding: 7px 0;"> </td></tr></tbody></table><p> </p> Link to comment Share on other sites More sharing options...
vekia Posted January 18, 2015 Share Posted January 18, 2015 change %7Bshop_url%7D to {shop_url} and %7Bshop_logo%7D to {shop_logo} Link to comment Share on other sites More sharing options...
c930586 Posted January 19, 2015 Author Share Posted January 19, 2015 OK, thanks for the reply. Does this have to be reported as a bug? I have not added the %7B and %7D, the system did automatically. There are 100 different email templates, and I have the issue with all of them I guess. Is there a way to change them all fast? Thanks. Link to comment Share on other sites More sharing options...
Matúš Posted January 19, 2015 Share Posted January 19, 2015 (edited) I have same problem after update PS, in all email template...Example:I write and saved: <table class="table table-mail" style="width: 100%; margin-top: 10px; -moz-box-shadow: 0 0 5px #afafaf; -webkit-box-shadow: 0 0 5px #afafaf; -o-box-shadow: 0 0 5px #afafaf; box-shadow: 0 0 5px #afafaf; filter: progid:DXImageTransform.Microsoft.Shadow(color=#afafaf,Direction=134,Strength=5);"> <tbody> <tr> <td class="space" style="width: 20px; padding: 7px 0;"> </td> <td style="padding: 7px 0;" align="center"> <table class="table" style="width: 100%;" bgcolor="#ffffff"> <tbody> <tr> <td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a style="color: #337ff1;" title="{shop_name}" href="{shop_url}"> <img src="{shop_logo}" alt="{shop_name}" /> </a></td> </tr> <tr> <td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Hi {firstname} {lastname},</span> </span></td> </tr> <tr> <td class="space_footer" style="padding: 0!important;"> </td> </tr> <tr> <td class="box" style="border: 1px solid #D6D4D4; background-color: #f8f8f8; padding: 7px 0;"> <table class="table" style="width: 100%;"> <tbody> <tr> <td style="padding: 7px 0;" width="10"> </td> <td style="padding: 7px 0;"> <p style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;" data-html-only="1">Message from {shop_name}</p> <span style="color: #555454; font-family: Open-sans,sans-serif; font-size: small;"><span style="color: #777;"> You have received a new message from <span style="color: #333;"><strong>{shop_name}</strong></span> regarding order with the reference <span style="color: #333;"><strong>{order_name}</strong></span>.<br /><br /> <span style="color: #333;"><strong>Message:</strong></span> {message} </span> </span></td> <td style="padding: 7px 0;" width="10"> </td> </tr> </tbody> </table> </td> </tr> <tr> <td class="space_footer" style="padding: 0!important;"> </td> </tr> <tr> <td class="footer" style="border-top: 4px solid #333333; padding: 7px 0;"><a style="color: #337ff1;" href="{shop_url}">{shop_name}</a> powered by <a style="color: #337ff1;" href="http://www.prestashop.com/">PrestaShop™</a></td> </tr> </tbody> </table> </td> <td class="space" style="width: 20px; padding: 7px 0;"> </td> </tr> </tbody> </table> after I look and I see that PS delete shadow table and replace href="{shop_url}" to href="%7Bshop_url%7D" and logo... <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: 100%;" bgcolor="#ffffff"> <tbody> <tr> <td class="logo" style="border-bottom: 4px solid #333333; padding: 7px 0;" align="center"><a style="color: #337ff1;" title="{shop_name}" href="%7Bshop_url%7D"> <img src="%7Bshop_logo%7D" alt="{shop_name}" /></a></td> </tr> <tr> <td class="titleblock" style="padding: 7px 0;" align="center"><span style="color: #555454; font-family: 'Open-sans', sans-serif; font-size: small;"> <span class="title" style="font-weight: 500; font-size: 28px; text-transform: uppercase; line-height: 33px;">Vážený zákazník {firstname} {lastname},</span> </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: 100%;"> <tbody> <tr> <td style="padding: 7px 0;" width="10"> </td> <td style="padding: 7px 0;"> <p style="border-bottom: 1px solid #D6D4D4; margin: 3px 0 7px; text-transform: uppercase; font-weight: 500; font-size: 18px; padding-bottom: 10px;">zpráva z e-shopu {shop_name}</p> <span style="color: #555454; font-family: 'Open-sans', sans-serif; font-size: small;"><span style="color: #777;"> Obdržali sste novú zprávu z e-shopu <span style="color: #333;"><strong>{shop_name}</strong></span> týkajúcu sa objednávky <span style="color: #333;"><strong>{order_name}</strong></span>.<br /><br /><span style="color: #333;"><strong>Obsah správy:</strong></span> {message} </span> </span></td> <td style="padding: 7px 0;" width="10"> </td> </tr> </tbody> </table> </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;">S pozdravom <a style="color: #337ff1;" href="%7Bshop_url%7D">{shop_name}</a></td> </tr> </tbody> </table> </td> <td class="space" style="width: 20px; padding: 7px 0;"> </td> </tr> </tbody> </table> It is not good bugs mails for customers. Edited January 19, 2015 by Matúš (see edit history) Link to comment Share on other sites More sharing options...
Rneo Posted January 26, 2015 Share Posted January 26, 2015 ?? Link to comment Share on other sites More sharing options...
xrusler Posted February 3, 2015 Share Posted February 3, 2015 (edited) Hello all, I have the same problem and it drives me crazy. The brackets ("{" or "}") are replaced by "%7B" or "%7D" only in "url" and "src" parts. Do you have some tips for solution? Edited February 3, 2015 by xrusler (see edit history) Link to comment Share on other sites More sharing options...
n_s_simpson Posted February 5, 2015 Share Posted February 5, 2015 Hi, I have the same issue. Also, has anyone else noticed that the HTML "title" tag fields are all blank? (Interestingly if I select to edit "Core (no theme selected)" those templates and the title tag fields are correct.) Link to comment Share on other sites More sharing options...
n_s_simpson Posted February 5, 2015 Share Posted February 5, 2015 Definitely a fault. I edited the HTML files directly in themes\default-bootstrap\mails\gb\ and they are fine. As soon as I go back into the mail translations in the BO and press "Save" I yet again have "%7Bshop_url%7D" and "%7Bshop_logo%7D". Checked my pre-upgrade 1.6.0.9 backup and that's fine so definitely a fault since 1.6.0.11. Link to comment Share on other sites More sharing options...
n_s_simpson Posted February 5, 2015 Share Posted February 5, 2015 Someone's already raised a bug report here: http://forge.prestashop.com/browse/PSCSX-4594?jql= Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 15, 2015 Share Posted February 15, 2015 Solution for your answer: https://www.prestashop.com/forums/topic/413406-email-templates-urls-broken-after-editing-and-saving-%7B-%7D/ 2 Link to comment Share on other sites More sharing options...
mxmart.mx Posted February 16, 2015 Share Posted February 16, 2015 Solution for your answer: https://www.prestashop.com/forums/topic/413406-email-templates-urls-broken-after-editing-and-saving-%7B-%7D/ Thank you for your help! It's working perfectly! Link to comment Share on other sites More sharing options...
delete-account-pleas Posted February 16, 2015 Share Posted February 16, 2015 @ mxmart.mx Your welcome, enjoy your prestashop webshop! ~ Jaimy Link to comment Share on other sites More sharing options...
sergeyspb2012 Posted June 10, 2015 Share Posted June 10, 2015 Solution for your answer: https://www.prestashop.com/forums/topic/413406-email-templates-urls-broken-after-editing-and-saving-%7B-%7D/ Thank you very much. It really helped. Link to comment Share on other sites More sharing options...
lukx Posted July 17, 2015 Share Posted July 17, 2015 I have brackets but I still have blue backgorund How I can fix it so it comes back to oryginal like it was before? Link to comment Share on other sites More sharing options...
delete-account-pleas Posted July 29, 2015 Share Posted July 29, 2015 I have brackets but I still have blue backgorund How I can fix it so it comes back to oryginal like it was before? Could you post a print-screen? Link to comment Share on other sites More sharing options...
marceloaurino Posted September 13, 2015 Share Posted September 13, 2015 Lukx, disable magic_quotes, the blue background will be removed. Link to comment Share on other sites More sharing options...
arapogiannis Posted December 15, 2015 Share Posted December 15, 2015 I have the same problem here. I disabled magic_quotes with the php.ini file in the install folder but nothing changed. Suggestions please? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now