joy_kev Posted July 5, 2010 Share Posted July 5, 2010 Hi,How to change notifications emails from prestashop?notifications emails tp customers such as when you change the status of an order: shipped, cancelled, etcI need to change the email content Thanks Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 5, 2010 Share Posted July 5, 2010 look in the mails/{lang} directory, where {lang} is the iso code for the language you use on your shop, i.e. en, fr, sp, etc... Link to comment Share on other sites More sharing options...
joy_kev Posted July 6, 2010 Author Share Posted July 6, 2010 I didn't mean the languagebut the notifications emails that are sent to the customers when a product is shipped, cancelled, etcI want to change the content/text of the emailanybody knows how? Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 6, 2010 Share Posted July 6, 2010 I TOLD YOU WHERE THEY WERE, Did you look at them? Link to comment Share on other sites More sharing options...
joy_kev Posted July 10, 2010 Author Share Posted July 10, 2010 I'm sorry, where can I find that directory? I looked around in the backend office and couldn't find anything that says 'mails en directory' Link to comment Share on other sites More sharing options...
MrBaseball34 Posted July 11, 2010 Share Posted July 11, 2010 You can't find it in the back office, you must look in your server directory structure. FTP into your server and it should be there. Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 You can't change it from the Back Office. You must use an FTP client to edit the .txt and .html files in the mails directory. Link to comment Share on other sites More sharing options...
BorisK Posted July 11, 2010 Share Posted July 11, 2010 I apologize, becasue I will borrow this theme but my question will be on place (I hope). I change files in directory shop/mails/MY LANGUAGE in to my language but I can't find where to change subject. For example. When I receive confirmation via e-mail and Subject is : Order confirmation <- I wont this in my language. How (where) can I change subject in to my language?Thank you for advicce.RegardsBoris Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 Edit mails/yourlang/lang.php. If you want to change the English translations, you'll need to copy the lang.php from another language, then edit it with your renamed titles. Link to comment Share on other sites More sharing options...
glenns Posted July 11, 2010 Share Posted July 11, 2010 Did you add your language already in the back office? Is that is what is required?When I go to the files the only language options are the ones I added the files for in the back office.Not to hijack, but Rocky or mrBaseball, does Prestashop have code that enters info like a link to the tracking number, shop name etc.For example where it says in transit.txt>>you can track your package by clicking on the following link: {followup}You can also review this order and download your invoice from the "Order history" section of your account by clicking "My account" on our Website. Thank you for shopping with {shop_name}!{shop_name} - {shop_url}<<Everything in parenthesis gets added automatically by Prestashop?Do you only need to edit these files to suit a personal feel of the notification? Link to comment Share on other sites More sharing options...
rocky Posted July 11, 2010 Share Posted July 11, 2010 Yes, the mail templates are only for changing the format of the email to suit your business. The content inside the tags are set in PHP files. You can specify the tracking URL under Shipping > Carrier and enter the tracking code on the order page after changing the status to Shipping. Link to comment Share on other sites More sharing options...
BorisK Posted July 12, 2010 Share Posted July 12, 2010 rocky, thank you for your answer. I check mails/sl/lang.php file (sl -> Slovenian) but in that file I found youst this:<?phpglobal $_LANGMAIL;$_LANGMAIL = array();?>Any other suggestions?RegardsBoris Link to comment Share on other sites More sharing options...
rocky Posted July 12, 2010 Share Posted July 12, 2010 Find a lang.php file in another language folder like fr and copy it over to your sl folder, then replace the French translations with your Slovenian ones. Link to comment Share on other sites More sharing options...
BorisK Posted July 13, 2010 Share Posted July 13, 2010 rocky....THANK YOU VERY MUCH for your help. It works now. Another question about received mail. Can you just tell me where to change logo size in received mail?That will be all for now :-)RegardsBoris Link to comment Share on other sites More sharing options...
rocky Posted July 14, 2010 Share Posted July 14, 2010 You'll need to change line 94 of classes/Mail.php: $templateVars['{shop_logo}'] = (file_exists(_PS_IMG_DIR_.'logo.jpg')) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.'logo.jpg'))) : ''; to: $templateVars['{shop_logo}'] = (file_exists(_PS_IMG_DIR_.'logo-mail.jpg')) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.'logo-mail.jpg'))) : ''; Create a separate image called logo-mail.jpg in the img directory in the root of PrestaShop that is smaller than the logo.jpg on the website. Link to comment Share on other sites More sharing options...
BorisK Posted July 14, 2010 Share Posted July 14, 2010 rocky, thank you again. You save a lot of my time. I made like you said, but there is no changes (see attachement) in logo. I think the size of logo should be a part of .css ?Best regardsBoris Link to comment Share on other sites More sharing options...
rocky Posted July 14, 2010 Share Posted July 14, 2010 So logo-mail.jpg is the size you want the logo to be? You shouldn't need to modify CSS. Here's the code for the logo in the mail templates: <a href="{shop_url}" title="{shop_name}"> It doesn't specify any width or height for the image, so it should use the full dimensions of the image. Link to comment Share on other sites More sharing options...
BorisK Posted July 15, 2010 Share Posted July 15, 2010 No, logo is not as should be. It is shrunken. Here is the original. What can be the reason ?RegardsBoris Link to comment Share on other sites More sharing options...
rocky Posted July 15, 2010 Share Posted July 15, 2010 I've had no such problem with my wide logo in my emails. I'm not sure what you can do other than edit all your mail templates and add the width and height it should be to the <img> tags. Link to comment Share on other sites More sharing options...
BorisK Posted July 16, 2010 Share Posted July 16, 2010 OK, rocky, thank you any way. You help me a lot. This is not so important and I can remove logo. It is faster an easier :-) .RegardsBoris 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