To customize an advanced template for back in a stock email, you can follow the below steps to do it.

Step 1. Open your email setting page.

Step 2. Tick on the checkbox Use advanced layout

Step 3. Write your code and save your email setting.

You will see the email is changed.