Jump to content

Questions about email themes migration


Recommended Posts

Hello,

I'm doing a 1.4 -> 1.7 migration and the management of email templates has changed a lot.
I'm taking all the old .html and .txt templates and converting them into a new theme in the folder \mails\themes\[myNewEmailTheme]. I split the template in several components with the Twig blocks, because it's cleaner.

  • Is this the only thing to do to migrate email templates?
  • I don't need all the email templates (e.g. cheque.html.twig, newsletter.html.twig, ...). Do I have to create them anyway ? What is the impact of not creating them ?
  • I need to use {$urls.img_url} var into a Twig email template (because images are located on an external media server). How to achieve that ?

Thanks for your help. If you have any other advice on this operation, I'm interested!

Edited by Loraga (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...