Jump to content

[SOLVED] How can I change the email templates?


Recommended Posts

  • 1 year later...
  • 3 months later...

Hello everybody.

I've a problem: I use only 1 language (Italian) and so after some time I decided to delete the other languages (too many rows duplicated in the db).

My website is working and sending mails to customers with no problems.

 

I'M USING PRESTASHOP 1.4.8.2 (soon I'll update).

 

I'd like now to change some mail templates... but when I enter in back office I get the error here below (also screen attached):

"mail file not found in the folder public_html/shop/mails/en"...

but the file does exist!

And why it's looking for the "en" folder while I'm using the "IT" language?

 

Should I edit anything in the db?

 

Thank you for your help!

 

Edo

Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...
hello, I developed a payment module and I want send mails notification with different mail templates, but I have not been able to do in any way, any ideas, someone can help me?

 

I want to use different templates for different emails shipments.

Link to comment
Share on other sites

  • 3 months later...

I went into "email template" translations and edited my template...

but whenever I click save, I get this error

 

Cannot write language file for email subjects. Path is: /home/copa85/public_html/themes/default/mails/en/lang.php

 

(This is an error with the file on my godaddy hosting ftp files I think) But why won't it save, any suggestions?

Thanks

Link to comment
Share on other sites

it's probably due to the permissions or file just doesnt exist and script cant create it.

verify it please, firstly check if this file exists - if so, check permissions. if not - create it and grant correct permissions for this file

Link to comment
Share on other sites

it's probably due to the permissions or file just doesnt exist and script cant create it.

verify it please, firstly check if this file exists - if so, check permissions. if not - create it and grant correct permissions for this file

 

 

I checked to see if I had that file, and the furthest I got was the "default" folder, there was no "mails" folder in my ftp file manager.

If I do create these files, what would I put in them?

Thanks

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...

Hi marky,

You can do that all through the area in the Back Office I mentioned above:

 

attachicon.gifEmail_HTML.png

 

Please let me know if this works for you.

 

-Mike

hey followed your approach was able to change the the desired.

 

my requirement is that i want to change the footer of the email accross all the mails that is sent. there are 50 plus email templates in out of the box prestashop. how can i change the footer for all of them at once.

Edited by abhiz.2007 (see edit history)
Link to comment
Share on other sites

hi ,

and to change the templates

Look for the folder Mails

your server-> Prestashop - > Mails

in these folder you find all the emails

Hey

 Unable to change the email footer. as instructed i changes all the files of email template with my custom text n links.

but the emails have not been updated, i have tried clearing cache, recompiling templates

 

the email only updates if i change it via prestashop back office feature under translation tab. its a manual and time taking process to cahnge it this way.

 

where  am i going wrong ?

 

http://abhishekproducts.in/http://abhishekproducts.in/

Link to comment
Share on other sites

Hey

 Unable to change the email footer. as instructed i changes all the files of email template with my custom text n links.

but the emails have not been updated, i have tried clearing cache, recompiling templates

 

the email only updates if i change it via prestashop back office feature under translation tab. its a manual and time taking process to cahnge it this way.

 

where  am i going wrong ?

 

http://abhishekproducts.in/http://abhishekproducts.in/

Hi 

Have you downloaded  the folder mails to your computer ?

did change all the email's from your language ?

after you did rename on your hosting the folder mails into --mails (this is just in case you can go back when it went wrong)

then upload the ""new""folder mails to your hosting

then it must work

 

but remember it depends what kind mails you want to change 

there are a many of them also in some modules etc

Edited by maconl (see edit history)
  • Like 1
Link to comment
Share on other sites

when you go with ftp to your folder mails -. your language

open this folder and you go to a mail you know you have edited 

vieuw this one <on your server>

is this a email you have edited ? or just the original one ?

i have edited the email file at the location 

../mails/en/account.html

 

since i have only one language the base folder had "mails" available directly

 

my website is abhishekproducts.in

Link to comment
Share on other sites

ok 

well i just checked this one and seems it is still the original

 

my advise is , upload the account.html with an ftp programm into the /mails/en folder

 

if this one keep still the same original then log in on your hosting and see if the GID is apache or your hosting username

 

if it is apache then go back til you see mails , select this folder and reset owner 

then you are able to change the mail templates

Link to comment
Share on other sites

  • 3 months later...

Hi marky,

You can do that all through the area in the Back Office I mentioned above:

 

attachicon.gifEmail_HTML.png

 

Please let me know if this works for you.

 

-Mike

 

Hi marky,

You can do that all through the area in the Back Office I mentioned above:

 

attachicon.gifEmail_HTML.png

 

Please let me know if this works for you.

 

-Mike

Hi I am trying to include product details in the shipped email. When I edit the template and test it, it just gives me "{products}" instead of a list of the products purchased. Please help.

Link to comment
Share on other sites

  • 2 months later...

ok 

well i just checked this one and seems it is still the original

 

my advise is , upload the account.html with an ftp programm into the /mails/en folder

 

if this one keep still the same original then log in on your hosting and see if the GID is apache or your hosting username

 

if it is apache then go back til you see mails , select this folder and reset owner 

then you are able to change the mail templates

 

Hi, please help me on this. I reset the GID and able to edit the template and add new template but Prestashop will not be able to edit this template using the email template editor that is built in at the Translator -> Email template. How do I reset back the GID to apache after editing ? Because I think the GID username other than 'apache' is preventing the Prestashop to update the files.

Edited by arafatx (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 2 weeks later...
  • 4 months later...
  • 3 months later...
  • 5 months later...

I have a question. In the email template editor, What is the different between. 

 

 

What is the purpose of TXT Version ?

 

The reason behind the TXT version is to provide an alternate reading style to some email clients. Some customer may not receive HTML content, and with the security of the TXT file, you at least know your content is being shown.

Link to comment
Share on other sites

  • 2 years later...
  • 8 months later...
On 3/16/2019 at 6:17 AM, shikotak said:

I use Prestashop 1.7 and I change the email template in back office but the changes won"t apply in sent emails.

I have the same problem.

I did a lot of tests and it always is the same: changes applied in files are not applied in sent emails.

I tested in Prestashop 1.6.x and 1.7.x

 

I cleared Prestashop cache too.

 

Any suggestion for fixing it?

 

Thanks

Edited by fabianc7 (see edit history)
Link to comment
Share on other sites

  • 2 months later...
  • 1 month later...
On 11/26/2019 at 4:49 PM, fabianc7 said:

I have the same problem.

I did a lot of tests and it always is the same: changes applied in files are not applied in sent emails.

I tested in Prestashop 1.6.x and 1.7.x

 

I cleared Prestashop cache too.

 

Any suggestion for fixing it?

 

Thanks

Hi folk, did you solve this?

I'm in this same stage.

Thanks.

Link to comment
Share on other sites

On 4/3/2020 at 4:53 PM, zenerry said:

Hi folk, did you solve this?

I'm in this same stage.

Thanks.

You must change e-mail template in another location. E-mails which send the Prestashop are in this folder: themes/[your theme]/mails.

Link to comment
Share on other sites

  • 2 weeks later...

Prestashop 1.7.6.5, php 7.2 - the problem is still here and is even courious!

1. My site has:

- a custom theme (not default)
- is not in English (is Romanian), it does not even have english as active/selectable language!

2. The default installation has the templates into /mails/language

ex:
 

/mails/en
/mails/ro

Aldo I use only Romanian language, the templates used for email are from /mails/en , but... translated with romanian text!

3. How i fixed the issue?

Just copy the entiere /mails/* folder to /themes/your_theme/

It will also use your language folder!

Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...