Alessandra71 Posted October 17, 2013 Share Posted October 17, 2013 Hi everybody, I just signed up to this great forum. My current problem with Prestashop is this: I can not figure out how to change the OBJECT in the e-mail notification that are sent to the customer (order confirmation, registration, etc.). I refer in particular to the text in brackets: Eg. [store name] Order Confirmation I would like to delete the first part of the object: [store name]. I tried in every way through the "mail.php" file in the folder "classes". But nothing happens,,, (I use the version 1.5.6). Could someone help me please? Thank you very much! Alessandra Link to comment Share on other sites More sharing options...
safa Posted October 17, 2013 Share Posted October 17, 2013 hi, open this file classes/mail.php find this code line. $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject); replace like this $message = new Swift_Message('/*'['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).']*/ '.$subject); i didn't try, but will be works. 1 Link to comment Share on other sites More sharing options...
Alessandra71 Posted October 18, 2013 Author Share Posted October 18, 2013 Hi Safa, thanks for your reply. Sorry but i cant't find this line in Mail.php file... Perhaps mail.php code is changed in version 1.5.6. Could you help me? Many thanks, Alessandra Link to comment Share on other sites More sharing options...
Alessandra71 Posted October 18, 2013 Author Share Posted October 18, 2013 Finally i found it and It works! Thank you very much! Alessandra Link to comment Share on other sites More sharing options...
safa Posted October 19, 2013 Share Posted October 19, 2013 Finally i found it and It works! Thank you very much! Alessandra i'am glad for you. Link to comment Share on other sites More sharing options...
Fidel62 Posted January 12, 2014 Share Posted January 12, 2014 Do not work for me. Alessandra, how do you make it work? Link to comment Share on other sites More sharing options...
Christiaan_01 Posted February 1, 2014 Share Posted February 1, 2014 (edited) Anyone knows how to change this in PS 1.5? I can't find it. Not even in Google. Only for very old PS versions. Edit: In Classes/Mail.php change: $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.$subject); to $message = new Swift_Message($subject); Also check in Classes/Override/Mail.php (if it exists) and do the same thing. Edited February 1, 2014 by Christiaan_01 (see edit history) Link to comment Share on other sites More sharing options...
robbie007 Posted February 6, 2015 Share Posted February 6, 2015 This one is better: replace $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.$subject); with: $message = new Swift_Message($subject); Link to comment Share on other sites More sharing options...
jinchiyu Posted March 23, 2015 Share Posted March 23, 2015 Hello , how do I replace Configuration :: get ( ' PS_SHOP_NAME ' ) with user name , recipient of the email ?Sorry for my bad English .S Link to comment Share on other sites More sharing options...
apositivo Posted April 26, 2015 Share Posted April 26, 2015 Alessandra, how do you make it work? 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