Jump to content

[Solved] Modify E-mail Subject translation when Order Statuses changes


Recommended Posts

Hi, I need some help to customize my PS 1.4.2.5

Every time that the order status changes the system sends an e-mail to client.

For instance, when you change the status order to cancelled the client receive an e-mail where the subject is [Kdekids] Canceled and the Spanish translation [KdeKids] Cancelada

What I would like to do is:

1) Eliminate the symbols “[ ]”
2) Change the Spanish translation to KdeKids – Anulación de pedido

I have checked the file lang.php in \mails\es and in this file I suppose that the line related to order status is $_LANGMAIL[' $subject'] = ''; and there is no way to change the status translation here.

I would appreciate any help, thanks
Toni

Link to comment
Share on other sites

1) Eliminate the symbols “[ ]”

Edit the Class Mail.php, search for the line that reads
$message = new Swift_Message('['.Configuration::get('PS_SHOP_NAME').'] '. $subject);



Change it to

$message = new Swift_Message(Configuration::get('PS_SHOP_NAME'). $subject);




2) Change the Spanish translation to KdeKids – Anulación de pedido

You should be able to edit translations in the back office -> tools -> Translations section

You can also remove the brackets from all the subjects here.
Link to comment
Share on other sites

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

Hello

I am using Prestashop 1.6.0.8 Thank you for coding, as per instruction $message = new Swift_Message(Configuration::get('PS_SHOP_NAME'). $subject); i done already, now my brackets [shopname] before website name is removed. But i get another problem please help me to fix that. thanks in advance.

 

The problem is Shopname and subjects shows without space

In mail Subject: Websitename.com Online ShoppeShipped 

 

What i want is : Websitename.com Online Shoppe - Shipped

Link to comment
Share on other sites

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