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)

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

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