Jump to content

[solved] Changing Formatting/Colors of Emails


nclark
 Share

Recommended Posts

I am using the default template and was wondering where I go to change the colors of the automated emails that are sent to the customer and to me when an order is placed? Right now the bars and shading are magenta and I would like to change them to just be black or grey. Would this be in a CSS file or is it in a .tpl file?

Any help is appreciated!!

Share this post


Link to post
Share on other sites

Well, vekia, sometimes there's a difference between concepts and practices. ;)

 

Till version 1.5.4 this feature didn't work because the styles were hard coded:

 

style="color: #db3484;" 

instead of

 style="color: {color};" 

 

So users of previous version have to modify the wrong code in every mail first to make your solution happen. And then there's still a hard coded light pink left for manual change (#f1aecf;).

 

This was fixed first in 1.5.4.1.

Share this post


Link to post
Share on other sites

Have been struggling with this too.

 

Upgraded from 1.4.10 to 1.5.4.1, but the mails are still pink unfortunately (but do have guest tracking notice, so guess it is not the same files as 1.4.10)

 

I also noticed I cannot save changes/translations of the mails. I guess it is some read only issue, but the error message point to themes/mails/da/lang.php but I have no mail dir in the themes folder, only in root.

 

Would be possible to just overwrite the entire mails dir with 1.5.4.1 files to solve this or what?

Share this post


Link to post
Share on other sites

Have been struggling with this too.

 

Upgraded from 1.4.10 to 1.5.4.1, but the mails are still pink unfortunately (but do have guest tracking notice, so guess it is not the same files as 1.4.10)

 

I also noticed I cannot save changes/translations of the mails. I guess it is some read only issue, but the error message point to themes/mails/da/lang.php but I have no mail dir in the themes folder, only in root.

 

Would be possible to just overwrite the entire mails dir with 1.5.4.1 files to solve this or what?

 

does the @eleazar  solution work for you? (i mean color)

Share this post


Link to post
Share on other sites

Well, yeah - regarding color I manually changed the code for a few templates, and it did work.

 

However having to do that manually for a multilingual site and each template will take forever, so hopefully a official fix will be implemented.

Share this post


Link to post
Share on other sites

Hi, kmorgen,

 

yep, you're right. I checked this in 1.5.4.1. So currently the easiest way is to use the freeware notepad++, like this:

  • Click on File--> Open
  • choose Prestashop's mail directory
  • Use shift+mouse left on first and last file, then click open to open all files at once
  • click ctrl+h (or Search in menu, then choose Replace)
  • change #db3484; to {color}
  • click in window on 'replace all items in all open files'
  • click Ctrl+Shift+s (or choose Save all in menu File)

That's all. To complete this replace color #f1aecf; with a color that fits or choose {color} too.

Edited by eleazar (see edit history)

Share this post


Link to post
Share on other sites

Damn, did not think of using the Replace feature on several files - thanks for the tip :D

 

For other readers, please notice you should not inlcude the ";" when you replace it (so replace #db3484 with {color})

 

For some strange reason I can actually not do this replace feature for all languages (Ex. NO), which have no space before #DB3484; (also written in capital). Also same problem removing the "Powered by Prestashop on some languages - not sure why..

  • Like 1

Share this post


Link to post
Share on other sites

For some strange reason I can actually not do this replace feature for all languages (Ex. NO), which have no space before #DB3484; (also written in capital). Also same problem removing the "Powered by Prestashop on some languages - not sure why..

 

1) Well, kmorgen, what about activating the options match case (and always wrap around) in the replace feature? Make's this job easier ... ;)

Anyway, notepad++ modifies the items with or without leading blank.

 

2) Did you consider to try to modify the full statement?

 

powered by <a href="http://www.prestashop.com/" style="text-decoration: none; color: #374953;">PrestaShop™</a>

Maybe it's because it start with a blank as you see above. Or you didn't remember that there's a hyperlink between 'by' and 'PrestaShop'? :rolleyes:

Edited by eleazar (see edit history)

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More