Jump to content

[SOLVED] Modify email object (text in brackets) in order confirmation


Alessandra71

Recommended Posts

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

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. :)

  • Like 1
Link to comment
Share on other sites

  • 2 months later...
  • 3 weeks later...

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 by Christiaan_01 (see edit history)
Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...
  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...