Hi Ulric,
To:
What is the correct way to add and select a custom email template in J2C 4 PRO, and to make sure it’s update-safe?
I have the same anwser:
The best way is to go to administrator/components/com_j2store/views/emailtemplate/tpls and copy the default.php file, give it another name and use that file.
The advanced editor is not a view of the simple editor. They are unrelated.
The simple editor's body is saved in the database, the advanced editor uses files.
The free version of J2Store was not allowing you to design emails in the backend, that is why you needed language overrides. There are no email template overrides in the free version of J2Store, only language overrides. If you wanted to update the body of the email, you add to change the content of J2STORE_ORDER_EMAIL_TEMPLATE_STANDARD_BODY.
As far as the error you are getting: try and not start the copied file name with 'default'. I did copy default.php, called it mydefault.php and it worked just fine on my test site.
Note that if the free version of J2Store was enough for you to send emails, you should not need the Advanced Temlplate File. The simple editor should be good enough, easier to use and what you see is what you get. If you want the exact copy of what you had in your previous store, just copy the content of the J2STORE_ORDER_EMAIL_TEMPLATE_STANDARD_BODY language override you had and put it in the editor.
I hope this clarifies things a bit better!