fenner Posted January 19, 2015 Share Posted January 19, 2015 Hi How do I remove the shopname from email subject/header sent to the customer. Is it possible to be done in BO? I'm using 1.6.0.9 Link to comment Share on other sites More sharing options...
fenner Posted February 2, 2015 Author Share Posted February 2, 2015 Does anyone know how to remove the shopname from email subject/header sent to the customer? Link to comment Share on other sites More sharing options...
robbie007 Posted February 6, 2015 Share Posted February 6, 2015 This works to remove {shop_name} from e-mail header: Look for classes/Mail.php file, please 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...
drexdis Posted March 28, 2015 Share Posted March 28, 2015 Hello, I have it done as you say but it still shows up in the email header. What should i do? Thanks. http://postimg.org/image/7ubx9qk5p/ Link to comment Share on other sites More sharing options...
bellini13 Posted March 29, 2015 Share Posted March 29, 2015 According to your screen shot, you didn't change it... Link to comment Share on other sites More sharing options...
drexdis Posted March 29, 2015 Share Posted March 29, 2015 According to your screen shot, you didn't change it... I don't understand For the subject email i want it to have the shop name. But for the header (right below it i don't). So this line "$message = new Swift_Message($subject);" is for the header i think? Link to comment Share on other sites More sharing options...
bellini13 Posted March 29, 2015 Share Posted March 29, 2015 This entire topic is about REMOVING the shop name from the subject line. if you are trying to accomplish something else, then post a new topic Link to comment Share on other sites More sharing options...
matik4 Posted April 14, 2015 Share Posted April 14, 2015 (edited) I don't understand For the subject email i want it to have the shop name. But for the header (right below it i don't). So this line "$message = new Swift_Message($subject);" is for the header i think? if by the header you mean, in the message on the top, then you have to edit e-mail templates - they're all in -> mails/ btw for the subject fix - it's line 281 in mail.php (presta 1.6.0.13): $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $id_shop).'] '.$subject; change to: $subject = $subject; Edited April 14, 2015 by matik4 (see edit history) Link to comment Share on other sites More sharing options...
pietro Posted May 7, 2015 Share Posted May 7, 2015 (edited) i dont understand why is not working, is there another file to modify? my classes/mail.php line 281 looks like: /* Create mail and attach differents parts */ $subject = $subject; $message = new Swift_Message($subject); but my email subject keeps showing as [store name] Your message has been correctly sent This is for ContactForm, I have all my email statuses disabled. Any ideas? I am on PS 1.6.0.14 Thanks, Edited May 7, 2015 by pietro (see edit history) Link to comment Share on other sites More sharing options...
pietro Posted May 7, 2015 Share Posted May 7, 2015 I got it, I also changed mail.php in override/classes directory and now it is working. Thanks a lot, Link to comment Share on other sites More sharing options...
Recommended Posts