herchri Posted January 2, 2012 Share Posted January 2, 2012 Hi Guys, does anyone know where I can change the standard mail subjects? I want to change the subject of the account welcome email, but I can't find it in the account.html thanks and kind regards Chris Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 2, 2012 Share Posted January 2, 2012 Hi Chris, You can easily change those in your Back Office under Tools > Translations > Email Template Translations. I hope this helps. -Mike Link to comment Share on other sites More sharing options...
herchri Posted January 2, 2012 Author Share Posted January 2, 2012 thanks Mike ... sorry didn't saw this easy option ... Link to comment Share on other sites More sharing options...
herchri Posted January 2, 2012 Author Share Posted January 2, 2012 Well ... I've tried to change the subject via Tools > Translations > Email Template Translations ... I always have a mail subject like [shopname] Many thanks for your registration ..... bla I want to remove the first part [shopname], but it seems not possible via backoffice. Mike, do you know how to remove it? thanks and kind regards Chris Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 2, 2012 Share Posted January 2, 2012 Hi Chris, With these emails, the {shop_name} variable grabs your shop's name for each email, so while it may say "Thank you from {shop_name}" in the Back Office, your customer would receive an email with the subject of "Thank you from (the name of your shop)" Do you still want to remove this? -Mike Link to comment Share on other sites More sharing options...
herchri Posted January 3, 2012 Author Share Posted January 3, 2012 Hi Mike, I messaged you via pm ... thanks Chris Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 3, 2012 Share Posted January 3, 2012 Hi Chris, Any chance you could send me more screenshots, but this time in English? It's hard to identify where this is coming from because my German is a little rusty . -Mike Link to comment Share on other sites More sharing options...
herchri Posted January 3, 2012 Author Share Posted January 3, 2012 Hi Mike, ok, I'll try my best ... Chris Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 3, 2012 Share Posted January 3, 2012 Hi Chris, In your classes/Mail.php file, please replace your version of line 170 seen below (this is for v1.4.6.2, your line may vary slightly depending on your version): $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '. $subject); with this: $message = new Swift_Message($subject); This should remove the [sHOP NAME] from the subject line of your emails. Please let me know if this works for you. -Mike 1 Link to comment Share on other sites More sharing options...
herchri Posted January 4, 2012 Author Share Posted January 4, 2012 many thanks. I'll test it ... Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 4, 2012 Share Posted January 4, 2012 Let me know how it goes! -Mike Link to comment Share on other sites More sharing options...
herchri Posted January 5, 2012 Author Share Posted January 5, 2012 it works like a charm ... many thanks Link to comment Share on other sites More sharing options...
Mike Kranzler Posted January 5, 2012 Share Posted January 5, 2012 I'm glad I could help! I'll go ahead and mark this as solved for you. -Mike Link to comment Share on other sites More sharing options...
Kaspi88 Posted June 8, 2012 Share Posted June 8, 2012 (edited) On 1/3/2012 at 10:09 PM, Mike Kranzler said: Hi Chris, In your classes/Mail.php file, please replace your version of line 170 seen below (this is for v1.4.6.2, your line may vary slightly depending on your version): $message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '. $subject); with this: $message = new Swift_Message($subject); This should remove the [sHOP NAME] from the subject line of your emails. Please let me know if this works for you. -Mike I remove the [] final subject SHOP NAME code does not work $message = new Swift_Message(.Configuration::get('PS_SHOP_NAME'). . $subject); Edited June 8, 2012 by Kaspi88 (see edit history) Link to comment Share on other sites More sharing options...
mobilafitness Posted December 11, 2012 Share Posted December 11, 2012 (edited) works for me, thank you Edited December 11, 2012 by mobilafitness (see edit history) Link to comment Share on other sites More sharing options...
patripe Posted April 2, 2013 Share Posted April 2, 2013 works fine for me so too. Prestashop v.1.5.4 at line 232. Not be more appropriate that the file was in the override folder? to prevent upgrades. I have tried putting it there but not working. Any ideas? Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts