Ale_BB Posted June 15, 2020 Share Posted June 15, 2020 Hello everyone, I have a strange issue I can't solve by myself, regarding the return_slip.html mail I have modified it some months ago when the website was in development, adding a link inside it that easily brings you to the rma panel in PrestaShop just with one click, great thing to improve the usability and smoother the workflow. Now that the website is live and running for the customers, when they submit and rma, we receive the email with the developing link (wrong one) and when I try to change it in the path /themes/myChildTheme/mails/it the email contains the right button link, but the email itself is written in english while it's in the italian language folder. Plus, in the english email folder "en" there's no return_slip.html. Same happens in the regular "Theme" folder (the one from which I made the child theme), while in the "classic" theme there's no return_slip.html at all, both italian and english. I'm not sure if I am missing something or this is some kind of bug, but I could really use some help 😅 Thank you! Link to comment Share on other sites More sharing options...
Prescol Posted June 16, 2020 Share Posted June 16, 2020 Email templates have two versions: html and plain text. Check both Link to comment Share on other sites More sharing options...
Ale_BB Posted June 17, 2020 Author Share Posted June 17, 2020 Sorry, I didn't specify it, but I have already checked it and there's no evidence of that link in the txt version. My modification has been done on the html file some time ago with the temporary link and then switched to the correct one recently (and it appears on the html), but the mail that comes out still have the old version. I was thinking, could it be some kind of "cache" provoking this behaviour? Link to comment Share on other sites More sharing options...
Prescol Posted June 17, 2020 Share Posted June 17, 2020 Email templates are overwritten in themes. Have you checked your theme folder? Link to comment Share on other sites More sharing options...
Ale_BB Posted June 17, 2020 Author Share Posted June 17, 2020 (edited) The one I was used to modify was the mail folder of my child theme. I have also checked the parent theme folder (the theme I bought) but there's no return_slip.html or txt at all. Same thing for the classic PS theme. I wonder where PrestaShop is taking that wrong template it keeps using 🤷♂️ Edited June 17, 2020 by Ale_BB Misprint (see edit history) Link to comment Share on other sites More sharing options...
Prescol Posted June 17, 2020 Share Posted June 17, 2020 Did you cleared smarty cache? Link to comment Share on other sites More sharing options...
Ale_BB Posted June 17, 2020 Author Share Posted June 17, 2020 The cache was already deactivated (I'm working on a development website that is a copy of the live version), but I cleaned it anyway: no results. The "correct" file is still in the mail folder, but when I return an object, I still receive the old one. Link to comment Share on other sites More sharing options...
Prescol Posted June 17, 2020 Share Posted June 17, 2020 Well, so you only can edit source code to find out which template is being rendered. Link to comment Share on other sites More sharing options...
Ale_BB Posted June 17, 2020 Author Share Posted June 17, 2020 I think it's the only solution at this point. I will see and update this topic as soon as I find the problem. Thanks for now! Link to comment Share on other sites More sharing options...
Ale_BB Posted June 23, 2020 Author Share Posted June 23, 2020 I SOLVED the problem by myself! Basically, those emails I was checking weren't working because there was a module that was overriding them, the ps_emailalerts. It has the email templates in the child theme folder. I edited them and everything worked fine! I hope it could help someone else with my same problem. 1 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