I want create a new template, but not from Marketing > Email Templates i want to do it programmatically from my custom extension, the idea is the new template will be saved when Setup/InstallData.php
runs, is there any way to do this?
Magento 2 – Save Email Template to Database During Install Data
-setupemail-templatesinstalldatamagento2
Best Answer
You can make the
InstallData.php
file look like thisWatch out for syntax errors. I didn't test the code.