{"id":1736,"date":"2021-04-28T10:02:04","date_gmt":"2021-04-28T10:02:04","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/customize-email-templates-in-magento-2\/"},"modified":"2025-06-17T10:20:14","modified_gmt":"2025-06-17T04:50:14","slug":"customize-email-templates-in-magento-2","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/customize-email-templates-in-magento-2\/","title":{"rendered":"How to Customize Email Templates in Magento 2"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">It is always a good idea to streamline your branding all over your store. Be on your website or the emails you send your customers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The default email templates in Magento are unexciting. But you can fix this by customizing them!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Learn here to customize email templates in Magento 2 and get actionable expert tips to enhance your brand consistency.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are Email Templates?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Email templates are pre-designed and customizable layouts that you can edit and modify as you like.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 offers many default email templates for email notifications, like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Change Email and Password<\/li>\n\n\n\n<li>Forgot Password<\/li>\n\n\n\n<li>New Invoice &amp; order<\/li>\n\n\n\n<li>New shipment for guests<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">However, all these templates have the same structure, and you can make them engaging by modifying and personalizing them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Customize Email Templates in Magento 2 Store?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can change email templates in Magento 2 from your admin panel in two steps:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"create-a-new-template\">Step 1: Create a New Template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Follow these steps to create a custom email template in Magento 2:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to your Magento 2 admin panel and navigate to&nbsp;<strong>Marketing &gt; Communications &gt; Email Templates<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then click on the&nbsp;<strong>Add New Template<\/strong>&nbsp;button.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/04\/Add-a-new-template-700x214-1.png\" alt=\"Add-a-new-template\n\" class=\"wp-image-49453\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Then, select an email template and click on the Load Template button. Now, you will have to start filling in the&nbsp;<strong>Template information<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Template Name: Give your new template a name.<\/li>\n\n\n\n<li>Template Subject: Add a subject line based on the template you are creating.<\/li>\n\n\n\n<li>Template Content: Customize the HTML content as you like here.<\/li>\n\n\n\n<li>Template Styles: Add the template style here, but this is an optional step.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/04\/Fill-in-the-template-information-700x432-1.png\" alt=\"Fill-in-the-template-information\" class=\"wp-image-49454\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">When you have finished filling in all the information, click on&nbsp;<strong>Save<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"assign-email-templates\">Step 2: Assign Email Template<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">After creating a new template, you must assign it to the store configurations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To do this, navigate to&nbsp;<strong>Stores &gt; Settings &gt; Configuration<\/strong>&nbsp;and head to&nbsp;<strong>Sales Emails<\/strong>&nbsp;under the&nbsp;<strong>Sales tab.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now select the template you have created from the dropdown and save the configuration.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/04\/assigntemplate-1024x472.jpg\" alt=\"How to Customize Email Templates in Magento 2\" class=\"wp-image-14522\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When you complete the above two steps, your email will be sent in the new email format you have set.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After these steps, one essential element to look for is the logo. If you plan to add a logo to your email or change your Magento 2 email logo, here are the steps to do so:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Head to&nbsp;<strong>Content &gt; Design &gt; Configuration<\/strong>&nbsp;and select the&nbsp;<strong>configuration scop<\/strong>e. Then click on the&nbsp;<strong>Transactional Emails<\/strong>&nbsp;section and fill out the following details.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" src=\"https:\/\/meetanshi.com\/blog\/wp-content\/uploads\/2021\/04\/Add-logo-to-email-template-in-M2-700x441-1.png\" alt=\"Add-logo-to-email-template-in-M2\n\" class=\"wp-image-49455\"\/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\">Lastly, end the process by clicking on&nbsp;<strong>Save Configuration<\/strong>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Dynamically Add Variables to Email Templates in Magento 2?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In Magento 2 email templates, you can use variables to dynamically load information. They help create personalized emails.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can add dynamic variables in the Template Content section using Syntax. Here are the common variables along with their syntax in Magento 2:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Variable Name<\/th><th>Syntax<\/th><\/tr><\/thead><tbody><tr><td>Customer Name<\/td><td>{{var customer.name}}<\/td><\/tr><tr><td>Customer Email<\/td><td>{{var customer.email}}<\/td><\/tr><tr><td>Your Store Name<\/td><td>{{var store.frontend_name}}<\/td><\/tr><tr><td>Your Store Phone Number<\/td><td>{{config path=\u201dgeneral\/store_information\/phone\u201d}}<\/td><\/tr><tr><td>Base URL<\/td><td>{{config path=\u201dweb\/unsecure\/base_url\u201d}}<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Expert Tips on Customizing Magento 2 Email Templates<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Magento 2 email customization helps you improve communication with customers and reinforce branding. Here are some additional tips to follow:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Include variables to in email templates for personalization<\/li>\n\n\n\n<li>Improve Conversion by <a href=\"https:\/\/meetanshi.com\/blog\/add-order-number-to-subject-in-order-email-template-in-magento-2\/\" data-type=\"link\" data-id=\"https:\/\/meetanshi.com\/blog\/add-order-number-to-subject-in-order-email-template-in-magento-2\/\">adding order number to subject in order email<\/a><\/li>\n\n\n\n<li>Avoid using external CSS files to ensure a clean structure and better compatibility<\/li>\n\n\n\n<li>Check your email responsiveness on all devices<\/li>\n\n\n\n<li>Avoid using spammy words in your email, as it might hurt your delivery<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Customizing email templates in Magento 2 is a good way to keep engaging with your customers, but you don\u2019t want to limit the connection only to emails.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also leverage&nbsp;<a href=\"https:\/\/meetanshi.com\/blog\/how-to-configure-sms-notifications-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">SMS notifications<\/a>&nbsp;and even&nbsp;<a href=\"https:\/\/meetanshi.com\/magento-2-whatsapp-notifications.html\" target=\"_blank\" rel=\"noreferrer noopener\">WhatsApp notifications<\/a>, as these platforms are now users\u2019 favorites for staying updated. Make the most of these channels and see your store engaged boost to the next level!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is always a good idea to streamline your branding all over your store. Be on your website or the emails you send your customers. The default email templates in Magento are unexciting. But you can fix this by customizing them! Learn here to customize email templates in Magento 2 and get actionable expert tips [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-1736","post","type-post","status-publish","format-standard","hentry","category-magento"],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=1736"}],"version-history":[{"count":3,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1736\/revisions"}],"predecessor-version":[{"id":16985,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/1736\/revisions\/16985"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=1736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=1736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=1736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}