Jump to content
Dan1

1.7.6 Change edit email subject?

Recommended Posts

How to edit email subject in ps 1.7.6? I know how to edit email body in themes/mytheme/mails/ or in BO translations, but email subject can't be edited in either.

In BO - translations - email - subject, there are no expressions to edit.

In BO - translations - email - body - core emails I can find the email whose subject I want to change but it also states: No Subject was found for password_query in the database.

In this case I want to change the subject of the password reset email.

Screenshot_2019-09-28 Translations • Spearfishing Store.png

Share this post


Link to post
Share on other sites

I had similar issues: I translated all email subjects in BO but when I got an email, the subject was still in english.
For some reason Prestashop did not use the translations. I do not have any idea why or was able to figure it out.

But what I was able, is to hardcode the translation in the file "lang.php" which can be found here: \themes\YOUR_TEMPLATE\mails\YOUR_LANGUAGE\
In the example below you see 2 hardcoded translations.

<?php

global $_LANGMAIL;
$_LANGMAIL = array();
$_LANGMAIL['Your order has been changed'] = 'Ihre Bestellung wurde geändert';
$_LANGMAIL['Product out of stock'] = '';
$_LANGMAIL['Product available'] = '';
$_LANGMAIL['New order : #%d - %s'] = '';
$_LANGMAIL['Stock coverage'] = '';
$_LANGMAIL['New return from order #%d - %s'] = '';
$_LANGMAIL['New credit slip regarding your order'] = 'Gutschrift für Ihre Bestellung';

?>

I hope this helps to solve your issue.

Edited by Oli4CH (see edit history)
  • Like 1

Share this post


Link to post
Share on other sites
On 10/10/2019 at 2:41 PM, Oli4CH said:

I had similar issues: I translated all email subjects in BO but when I got an email, the subject was still in english.
For some reason Prestashop did not use the translations. I do not have any idea why or was able to figure it out.

But what I was able, is to hardcode the translation in the file "lang.php" which can be found here: \themes\YOUR_TEMPLATE\mails\YOUR_LANGUAGE\
In the example below you see 2 hardcoded translations.


<?php

global $_LANGMAIL;
$_LANGMAIL = array();
$_LANGMAIL['Your order has been changed'] = 'Ihre Bestellung wurde geändert';
$_LANGMAIL['Product out of stock'] = '';
$_LANGMAIL['Product available'] = '';
$_LANGMAIL['New order : #%d - %s'] = '';
$_LANGMAIL['Stock coverage'] = '';
$_LANGMAIL['New return from order #%d - %s'] = '';
$_LANGMAIL['New credit slip regarding your order'] = 'Gutschrift für Ihre Bestellung';

?>

I hope this helps to solve your issue.

Perfect! I've been strugling with the d*mn translations for so far!

Thank you

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More