Vilas Posted August 26, 2013 Share Posted August 26, 2013 Hello Friends, I am using Prestashop 1.5.4.1. I am trying to modify email templates using translations options. But I am getting error massage as " Your HTML email templates cannot contain JavaScript code." Whereas I am not entering any kind of java-script code. I am just simply going to change font & alignment. Will be great if anyone suggest solution on it. Thanks Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted August 26, 2013 Share Posted August 26, 2013 Hi, you can try to modify email templates directly via FTP (mails/your_lang/your_template.(html/txt)) Regards 1 Link to comment Share on other sites More sharing options...
vekia Posted August 26, 2013 Share Posted August 26, 2013 check email file as Alexander suggested. (can you show contents of this file?) I remember that one from the merchants here has got and TROJAN there (in contents of the mail temaplate file) Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 Actually I am trying to modify one of the file. But if Dont do anything then also still if I click on update translations then also I am getting same error. Shall I change complete mail folder or any other suggestion? Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 Hi, you can try to modify email templates directly via FTP (mails/your_lang/your_template.(html/txt)) Regards Earlier I had done same thing. From there onwords only I am getting this error. Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 Hi, you can try to modify email templates directly via FTP (mails/your_lang/your_template.(html/txt)) Regards Earlier I had done same thing. From there onwords only I am getting this error. Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted August 26, 2013 Share Posted August 26, 2013 Do you can not save html/txt file through FTP? Or what error? Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 through ftp editing is possible. There is no error. But if I edit those translations using email template editor option then I am getting this error. From ftp I am able to download & edit. But if I edit using Dreamweaver then format gets changed when I upload & then check using backend. This is the issue thaty I am trying to modify through translations option. Thanks Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted August 26, 2013 Share Posted August 26, 2013 But if I edit using Dreamweaver then format gets changed when I upload & then check using backend. This is the issue thaty I am trying to modify through translations option. I undertood your, but trick with editiing templates from FTP must works, and it is very strange to listen about something issues after that Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 Suppose if I want to restore them to original one then what will be the easier method? As I have upgraded my store from earlier versions might be that is the reason I am getting this error. Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted August 26, 2013 Share Posted August 26, 2013 Just download your version of prestashop from prestashop.com and override your modificated mails with original Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 That means only that mails folder? Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted August 26, 2013 Share Posted August 26, 2013 I meant replaced your customised forder with folder from non-customized (default) package Link to comment Share on other sites More sharing options...
Vilas Posted August 26, 2013 Author Share Posted August 26, 2013 Yes same thing I asked. Let me check by replacing Will get back to you with an update. Thanks for your support Link to comment Share on other sites More sharing options...
Pman 77 Posted October 1, 2013 Share Posted October 1, 2013 Hi guys i am using PS 1.5.4 and i am editing my order_conf.html and .txt in dreamweaver but when i upload the files and test the order process i am not seeing the changes, is this normal. I need to edit what i print out when the order hits the restaurante. I have deleted several field etc. Many thanks Patrick Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 where you uploaded files? everything depends on it. it's better to change mail templates in back office. Link to comment Share on other sites More sharing options...
Pman 77 Posted October 1, 2013 Share Posted October 1, 2013 I am trying to change in the back office but i get the error message that folder does not exist. I am not using the default theme, so should i copy the mail folder i have in the root to the theme template i am using? I am having a lot of probs and i am suppose to go live in 4 days now :^( ERROR IN BACK END Cannot write language file for email subjects. Path is: /home/public_html/themes/elation-liquid/mails/es/lang.php Making changes in dreamweaver does not work either. I need to make changes to title that get printed in the the order_conf.txt file to for the sushi store to understand the order better Any help would be awesome Regards Patrick Link to comment Share on other sites More sharing options...
Pman 77 Posted October 1, 2013 Share Posted October 1, 2013 Hi, I added the mail folder into my theme and now i am allowed to edit the templates etc, great. i editi the order_conf.html and that order that the client would receive is good, with the changes i made. but the order_conf.txt has not worked when i have printed in the shop. I have a software that you select to print in .txt for the paper is only 70mm wide, it is a receipt printer. But this has not changed to the new format i need. Would that be in the back office / translator / email template / theme / spanish then edit the templates? Many thanks in advance Patrick Link to comment Share on other sites More sharing options...
Pman 77 Posted October 1, 2013 Share Posted October 1, 2013 Another update, I have seen the order conf that comes to the client is different to the one that i receive as the shop owner. What file do i edit to change the file i receive? I am getting slightly closer i think!! Thanks Link to comment Share on other sites More sharing options...
Dolke Posted November 19, 2013 Share Posted November 19, 2013 (edited) I got the same error msg on my 1.5.4.1 PS this morning when I tried to modify some email templates. Any solution to this? I'm using default theme.btw its working ok using FTP... Edited November 19, 2013 by Dolke (see edit history) Link to comment Share on other sites More sharing options...
lokifer Posted January 7, 2014 Share Posted January 7, 2014 I got the same error msg on my 1.5.4.1 PS this morning when I tried to modify some email templates. Any solution to this? I'm using default theme. btw its working ok using FTP... Please try to Just select core(no theme selected). and edit the email Link to comment Share on other sites More sharing options...
totallighting.sk Posted February 24, 2014 Share Posted February 24, 2014 My problem is little bit diffrent. I made new email templates, which are based in my language mail folder, but PS 1.5.6 is using still old design. No idea why? Link to comment Share on other sites More sharing options...
El Patron Posted February 24, 2014 Share Posted February 24, 2014 many time this issue can be resolved as follows: http://screencast.com/t/WLctHOmQqsoN select core(no theme). Link to comment Share on other sites More sharing options...
totallighting.sk Posted February 24, 2014 Share Posted February 24, 2014 Thx, where are core templates based? I mean in which folder? Link to comment Share on other sites More sharing options...
El Patron Posted February 24, 2014 Share Posted February 24, 2014 Thx, where are core templates based? I mean in which folder? mails folder side note: in a multishop there is no 'share' 'no share' mails. so when we generate a another shop we should 'not share' template. Then copy mails folder into yourtheme/mails. Link to comment Share on other sites More sharing options...
totallighting.sk Posted February 24, 2014 Share Posted February 24, 2014 Funny, I`ve inside: mails/sk/ mail templates... For example code for order confirmation, try pls in editor: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Language" content="sk"> <title>Odkaz od {shop_name}</title> <style type="text/css"> a {color: #000000;} a:visited {color: #000000;} a:active {color: #000000;} .style1 {color: #FF0000;} .style3 {text-transform: uppercase;font-weight: bold;font-size: 12px;color: #FFFFFF;background-color: #383838;border-radius: 3px;border-bottom: 1px solid #ff0000;} .style4 {background-color: #383838;border-radius: 3px;border-bottom: 1px solid #ff0000;text-align: center;} .style5 {color: #FFFFFF;} .style6 {background-color: #FFFFFF;text-align: center;} .style7 {text-transform: uppercase;background-color: #383838;border-radius: 3px;border-bottom: 1px solid #ff0000;} .style8 {text-align: center;} .style9 {font-weight: bold;} .style10 {text-transform: uppercase;font-weight: bold;font-size: 12px;color: #FFFFFF;background-color: #383838;border-radius: 3px;border-bottom: 1px solid #ff0000;text-align: center;} </style> </head> <body> <table style="font-family:Verdana,sans-serif;border: 1px solid #ccc;border-radius: 3px;box-shadow: 0 0 5px #888; font-size:11px; color:#374953; width: 700px;" align="center"> <tr> <td style="width: 700px" class="style8"> <a href="{shop_url}" title="{shop_name}"><img alt="{shop_name}" src="{shop_logo}" style="border:none;" ></a> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="width: 700px">Dobrý deň <strong class="style1">{firstname} {lastname}</strong>,<br /><br /> Ďakujeme za Vašu objednávku v obchode <strong>{shop_name}</strong>!</td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td style="padding: 0.5em 1em; width: 700px;" class="style10"> Detail vašej objednávky</td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="width: 700px"> Objednávka: <strong><span class="style1">{order_name}</span> <br> </strong> Dátum objednávky: <strong>{date}</strong> <br >Platba: <strong>{payment}</strong> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left"> <table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;"> <!-- Title --> <tr style="background-color:#B9BABE; text-align:center;" class="style5"> <th style="width:200px; padding: 0.6em 0;" class="style7"> kód produktu</th> <th style="width:200px; padding: 0.6em 0;" class="style7"> názov produktu</th> <th style="width:100px; padding: 0.6em 0;" class="style7"> cena/ks</th> <th style="width:100px; padding: 0.6em 0;" class="style7"> počet</th> <th style="width:100px; padding: 0.6em 0;" class="style7"> cena spolu</th> </tr> <!-- Products --> {products} {discounts} <!-- Footer: prices --> <tr style="text-align:right;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;">Produkty spolu:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_products}</td> </tr> <tr style="text-align:right;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;">Celková zľava:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_discounts}</td> </tr> <tr style="text-align:right;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;">Preprava:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_shipping}</td> </tr> <tr style="text-align:right; font-weight:bold;"> <td style="width: 200px"> </td> <td colspan="3" style="padding:0.6em 0.4em;" class="style9"> Výsledná suma:</td> <td style="padding:0.6em 0.4em; width: 100px;" class="style8">{total_paid}</td> </tr> </table> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="padding: 0.5em 1em; width: 700px;" class="style3"> Preprava</td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td align="left" style="width: 700px"> Prepravca: <strong>{carrier}</strong> </td> </tr> <tr><td style="width: 700px"> </td></tr> <tr> <td> <table style="width:100%; font-family:Verdana,sans-serif; font-size:11px; color:#374953;"> <tr style="background-color:#B9BABE; text-transform:uppercase;" class="style5"> <th style="padding: 0.3em 1em; width: 350px;" class="style4"> Dodacia adresa</th> <th style="padding: 0.3em 1em; width: 350px;" class="style4"> fakturačná adresa</th> </tr> <tr> <td style="padding:0.5em 0 0.5em 0.5em; " class="style6"> {delivery_block_html} </td> <td style="padding:0.5em 0 0.5em 0.5em; " class="style8"> {invoice_block_html} </td> </tr> </table> </td> </tr> </table> </body> </html> Link to comment Share on other sites More sharing options...
Recommended Posts