How to Customize Email Templates in Magento 2

Every business owner finds ways to engage with their customers. There are several traditional channels for communicating with customers, and Email is one of them.

After creating an amazing store, it would be a bonus if your Magento 2 email templates have a similar look as your store. Magento 2 offers many default email templates for the body section of the individual email message. Those are the same for all the stores. Some of those email templates are:

  • Change Email and Password
  • Forgot Password
  • New invoice
  • New order
  • New shipment for guest and many more…

However, it may be nice to customize Email template in Magento 2.

For instance, the store owner wants to add a tracking number and tracking URL in the shipment email, a special discount offer in the order confirmation mail, or a similar product list in the invoice email.

But, to implement these features, it is not recommended to change the default core Magento files. If you want to customize the default templates, you should create your custom templates and configure Magento to use them instead of the default templates.

Use the below stepwise method and customize the Email template in Magento 2.

Steps to Customize Email Templates in Magento 2

  1. Log in to Magento 2 admin panel.
  2. Navigate to Marketing > Communications > Email Templates.firststep
  3. Click on Add New Template button from top right.
  4. Select an email template as per your requirement of customization and click on Load Template button.
  5. Enter the Template Information
  6.  Set the name of the template in the Template Name field.
  7. Change Template Subject and Template Content as per your requirement.
    i.e., To add custom text to email
    <p>Due to lockdown and COVID-19 crisis, there may be a delay in the shipment.</p>How to Customize Email Templates in Magento 2
  8.  Add Template Styles if you need.
  9. Save the Template.

Assign Email Template

If you have created a new template you need to assign it in the store configurations.

  1.  Navigate to  Stores > Settings > Configuration.
  2. Go to Sales Emails under Sales tab.
  3. Select your created template in the New Order Confirmation Template for Guest option.
    How to Customize Email Templates in Magento 2
  4. Save the Configuration.

Once, you’ve created the template and assigned it, your email will be sent in the customized form as shown below:

How to Customize Email Templates in Magento 2

That’s it.

If you have queries regarding this solution, feel free to ask in the Comments section below.

I would be happy to answer your question.

Do consider sharing this post with Magento Community via social media.

Thank you.

(based on 18 Reviews)
How to Customize Email Templates in Magento 2

Kishor Chhugani

He is a Magento developer at Meetanshi with a jolly, extrovert, & friendly personality. He loves playing cricket and is a passionate foodie!

Leave a Reply

Your email address will not be published. Required fields are marked *