AgnieszkaK Posted June 14, 2021 Share Posted June 14, 2021 I created a new module that adds a new order state. I would also like to add my new email template to the folder with all templates (move file: my_module/mails/en/my_email_template to app_main_dir/mails/en/ dir). I don't want to send emails from my module, I just want to add a new template using only my module. In creating a new order state, there is a "template => email_template" field where you need to indicate which email template will be sent by the order status, and templates that can be used are outside my module. do you have any idea how to do it? Link to comment Share on other sites More sharing options...
joseantgv Posted June 14, 2021 Share Posted June 14, 2021 Just copy the templates https://www.php.net/manual/en/function.copy.php 1 Link to comment Share on other sites More sharing options...
AgnieszkaK Posted June 16, 2021 Author Share Posted June 16, 2021 @joseantgv ok, it was so stupid and simple, and works! Thank you so so much! 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