Jump to content

Unable to modify email templates


Recommended Posts

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

 

"

close.png 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

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

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

  • 1 month later...

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

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

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

  • 1 month later...
  • 1 month later...

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

  • 1 month later...

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

×
×
  • Create New...