Jump to content

Edit History

wepresta

wepresta

4 minutes ago, ptityop said:

Again thanks for your patience this is driving me mad, so here is exactely what I have , just trying to make it simple. So I am using my custom template and I have all my mails in 

/themes/ZOneTheme/mails/fr in there I have all the .txt and .html templates

In BO In Parameters I chose my default email template selecting my custom theme

Then i generate email (but here I am not to sure what to select in the option (overwrite theme) 

I clear cache every change I make

And still no luck 

I see the confusion: in PS9, /themes/ZOneTheme/mails/fr (.html/.txt) is the legacy system. The BO email preview and the PS9 mail system mainly use the Twig email themes under /mails/themes/....

So if you only edit:
/themes/ZOneTheme/mails/fr/*.html
you often won’t see it in the PS9 preview.

Do this instead:

  • BO → Design → Email theme
    • Select your email theme, then click Generate.
  • In “Overwrite theme”:
    • Choose YES if you want PrestaShop to rebuild the theme files under /mails/themes/<your_theme>/... from the current source.
    • Choose NO if you already edited Twig files there and don’t want them overwritten.
  • After generating, edit the real files used by preview:
    • /mails/themes/<selected_theme>/templates/... (order confirmation template and clear /var/cache/*.

Quick test: open the preview URL — it shows .../preview/classic or .../preview/<your_theme>. That name must match the folder inside /mails/themes/. If it says classic, you’re not previewing your custom theme yet.

If you paste:

  • the preview URL (classic or your theme name)
  • the folder list under /mails/themes/

I can tell you exactly which template file to edit.

wepresta

wepresta

3 minutes ago, ptityop said:

Again thanks for your patience this is driving me mad, so here is exactely what I have , just trying to make it simple. So I am using my custom template and I have all my mails in 

/themes/ZOneTheme/mails/fr in there I have all the .txt and .html templates

In BO In Parameters I chose my default email template selecting my custom theme

Then i generate email (but here I am not to sure what to select in the option (overwrite theme) 

I clear cache every change I make

And still no luck 

I see the confusion: in PS9, /themes/ZOneTheme/mails/fr (.html/.txt) is the legacy system. The BO email preview and the PS9 mail system mainly use the Twig email themes under /mails/themes/....

So if you only edit:
/themes/themename/mails/fr/*.html
you often won’t see it in the PS9 preview.

Do this instead:

  • BO → Design → Email theme
    • Select your email theme, then click Generate.
  • In “Overwrite theme”:
    • Choose YES if you want PrestaShop to rebuild the theme files under /mails/themes/<your_theme>/... from the current source.
    • Choose NO if you already edited Twig files there and don’t want them overwritten.
  • After generating, edit the real files used by preview:
    • /mails/themes/<selected_theme>/templates/... (order confirmation template and clear /var/cache/*.

Quick test: open the preview URL — it shows .../preview/classic or .../preview/<your_theme>. That name must match the folder inside /mails/themes/. If it says classic, you’re not previewing your custom theme yet.

If you paste:

  • the preview URL (classic or your theme name)
  • the folder list under /mails/themes/

I can tell you exactly which template file to edit.

×
×
  • Create New...