Jump to content

[SOLVED] Email Subjects - Welcome Email F.e.


Recommended Posts

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

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

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

  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  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 by Kaspi88 (see edit history)
Link to comment
Share on other sites

  • 6 months later...
  • 3 months later...

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

×
×
  • Create New...