Choy Gonzalez Posted April 24, 2009 Share Posted April 24, 2009 I need help to remove [shopname] from the subject in every email.Please help. Thanks! Link to comment Share on other sites More sharing options...
rocky Posted April 24, 2009 Share Posted April 24, 2009 I had a quick look at the code and found this for you to try. In classes/Mail.php, change line 93 from: $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '.((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject)); to: $message = new Swift_Message(((is_array($_LANGMAIL) AND key_exists($subject, $_LANGMAIL)) ? $_LANGMAIL[$subject] : $subject)); Link to comment Share on other sites More sharing options...
Choy Gonzalez Posted April 24, 2009 Author Share Posted April 24, 2009 THANKS! It works! THANKS AGAIN CHAMPION OF THE UNIVERSE!!!!!! Link to comment Share on other sites More sharing options...
prestaslo Posted October 23, 2013 Share Posted October 23, 2013 (edited) I have on line 93 just this: if (!isset($from) || !Validate::isEmail($from)) I use 1.5.6 Edit: I see that this is old post, anybody know how to remove [shop name] from email subject on 1.5.6? Edited October 23, 2013 by prestaslo (see edit history) Link to comment Share on other sites More sharing options...
prestaslo Posted October 23, 2013 Share Posted October 23, 2013 Solved: From line 242 remove: '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '. Link to comment Share on other sites More sharing options...
Housy Posted November 30, 2013 Share Posted November 30, 2013 (edited) Hi prestaslo I tryed that to, but it works only on all order statuses, except on "cancel order". You have that problem too? Thank you and best regards, Housy Solved: From line 242 remove: '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '. Edited November 30, 2013 by Housy (see edit history) Link to comment Share on other sites More sharing options...
SoluNOiD Posted September 22, 2014 Share Posted September 22, 2014 (edited) Hi And if the line in PS 1.6.0.9 says: $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject); What to change it to? When i change it to the above code, i stille get [shop name] in the subject line Thanks Edited September 22, 2014 by SoluNOiD (see edit history) 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