I’m having a very confusing issue with email templates in PrestaShop 9, specifically when using the email preview from the “Order status” section in the Back Office.
When I started testing email previews, I noticed that the templates being rendered were not the ones I had customized. Because PrestaShop 9 introduced many changes compared to previous versions, I assumed this might be related to how email templates are now resolved.
To eliminate ambiguity, I took the following steps:
- I copied all email templates from the custom theme/mails folder into both the classic and modern themes.
- I then tested which location was actually being used by the preview system.
Through testing, I realized that:
- The email preview only works when /mails/themes/classic exists.
- If I rename or remove /mails/themes/classic, the email preview stops working entirely.
This strongly suggests that /mails/themes/classic is the only folder triggering email previews.
To further isolate the issue:
In my custom theme, I renamed the mails folder so it cannot be used.
In the core /themes directory, I renamed all themes except classic, so there should be only one possible source for email templates: /mails/themes/classic
Despite this, I’m still seeing generic email content in the preview, The main email body does not reflect my customized templates from the language folder, However, changes made to footer.twig are reflected (for example, removing “Powered by PrestaShop”). So something is being loaded from my customized files — but only partially.
Also.
I clear the cache every time I make changes (manually from the file manager) , I have left only one language folder inside /mails/themes/classic, even so, the email body content does not seem to come from that language folder at all.
At this point, I’m stuck because:
There is only one possible mail template location left.
Parts of my customizations are applied.
But the main email content is still coming from what looks like a fallback or generic source.
Clearly, I’m missing something in how PrestaShop 9 resolves or composes email templates, but I can’t identify what it is.
If anything in this explanation is unclear, I’m happy to reformulate — but I hope someone familiar with PrestaShop 9’s email system can point out what I’m overlooking.
.png.022b5452a8f28f552bc9430097a16da2.png)