kinkibcn Posted June 25, 2011 Share Posted June 25, 2011 Hi, I need some help to customize my PS 1.4.2.5Every time that the order status changes the system sends an e-mail to client.For instance, when you change the status order to cancelled the client receive an e-mail where the subject is [Kdekids] Canceled and the Spanish translation [KdeKids] CanceladaWhat I would like to do is:1) Eliminate the symbols “[ ]” 2) Change the Spanish translation to KdeKids – Anulación de pedidoI have checked the file lang.php in \mails\es and in this file I suppose that the line related to order status is $_LANGMAIL[' $subject'] = ''; and there is no way to change the status translation here.I would appreciate any help, thanksToni Link to comment Share on other sites More sharing options...
bellini13 Posted June 26, 2011 Share Posted June 26, 2011 1) Eliminate the symbols “[ ]” Edit the Class Mail.php, search for the line that reads$message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '. $subject); Change it to $message = new Swift_Message(Configuration::get('PS_SHOP_NAME'). $subject); 2) Change the Spanish translation to KdeKids – Anulación de pedido You should be able to edit translations in the back office -> tools -> Translations sectionYou can also remove the brackets from all the subjects here. Link to comment Share on other sites More sharing options...
kinkibcn Posted June 26, 2011 Author Share Posted June 26, 2011 Thanks a lot bellini13 for your help,I have made the changes and now it works fine and just how I wanted. You can not imagine how many hours I wasted trying to solve it without any result.Thank you very much,Toni Link to comment Share on other sites More sharing options...
bellini13 Posted June 26, 2011 Share Posted June 26, 2011 good news, glad you got it working Link to comment Share on other sites More sharing options...
yeremaya Posted December 6, 2012 Share Posted December 6, 2012 Good job!, thx. Link to comment Share on other sites More sharing options...
bojees Posted October 5, 2014 Share Posted October 5, 2014 Hello I am using Prestashop 1.6.0.8 Thank you for coding, as per instruction $message = new Swift_Message(Configuration::get('PS_SHOP_NAME'). $subject); i done already, now my brackets [shopname] before website name is removed. But i get another problem please help me to fix that. thanks in advance. The problem is Shopname and subjects shows without space In mail Subject: Websitename.com Online ShoppeShipped What i want is : Websitename.com Online Shoppe - Shipped 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