Tymek Z Posted November 29, 2018 Share Posted November 29, 2018 (edited) Hi, I've made changes in classes/Mail.php in order to change mail subjects. I've commented out this line: $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $idShop).'] '.$subject; My aim was to send emails without shop name in brackets. Unfortunately, email subjects are still the same... How do I clear the PrestaShop class Cache? EDIT: I've realised that it is not fault of the cache. Edited November 29, 2018 by Tymek Z (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted November 29, 2018 Share Posted November 29, 2018 1 hour ago, Tymek Z said: Hi, I've made changes in classes/Mail.php in order to change mail subjects. I've commented out this line: $subject = '['.Configuration::get('PS_SHOP_NAME', null, null, $idShop).'] '.$subject; My aim was to send emails without shop name in brackets. Unfortunately, email subjects are still the same... How do I clear the PrestaShop class Cache? Advanced parameters -> Performance Link to comment Share on other sites More sharing options...
Tymek Z Posted November 29, 2018 Author Share Posted November 29, 2018 Strangely enough, this is not the faut of cache (I've edited the topic title). When i change email title in classes/Mail.php, All the email messages get changes BUT the order confirmation message. What is more, if I remove shop name, or even part concatenating to the $subject variable, email (but only of confirmation order message) title seems changing back to the old one. Very strange. Looks like a bug. Link to comment Share on other sites More sharing options...
Tymek Z Posted November 29, 2018 Author Share Posted November 29, 2018 Thank you! Still it doesn't work. I uploaded this override and still my email titles look like this: Payment awaiting[Shop Name] Order confirmed But if I concatenate, let's say, a dot to a $subject it would look like this: Payment awaiting.Order confirmed. As if Presta had some kind of regex and another title template for some of emails? Wtf. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now