{"id":8635,"date":"2023-08-24T10:18:36","date_gmt":"2023-08-24T10:18:36","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=8635"},"modified":"2024-03-29T12:37:26","modified_gmt":"2024-03-29T12:37:26","slug":"how-to-override-email-template-in-custom-module-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/","title":{"rendered":"How to Override Email Templates in Custom Module in Magento 2"},"content":{"rendered":"\n<p>In Magento 2, email templates play a crucial role in delivering personalized and engaging communication to customers. However, there are instances when you may need to modify or customize these email templates to align them with your brand&#8217;s identity or add specific functionality. In this blog post, we will explore the process of overriding email templates in a custom module in Magento 2. By following these steps, you will be able to seamlessly customize email templates to suit your business requirements.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Overview of Email Templates in Magento 2<\/h2>\n\n\n\n<p>Before diving into the customization process, let&#8217;s have a brief overview of email templates in Magento 2. Email templates are predefined HTML files that contain the content and layout for various types of emails, such as order confirmation, account registration, and password reset emails. Magento 2 provides a set of default email templates that are located in the core modules.<\/p>\n\n\n\n<p>However, directly modifying the email templates in the core modules is not recommended. When you update Magento or install patches, these modifications may be overwritten, resulting in the loss of your changes. To avoid this, it is best practice to override the email templates through a custom module.<\/p>\n\n\n\n<p>By creating a custom module and overriding the email templates within it, you can ensure that your modifications remain intact during system updates. This approach provides a safer and more sustainable way to customize email templates in Magento 2.<\/p>\n\n\n\n<p>Now let&#8217;s proceed to the next section, which covers the creation of a custom module in Magento 2.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Override the Email Template in the Custom Module<\/h2>\n\n\n\n<p>To override the existing email templates in Magento 2, you need to determine the ID of the template you want to modify. You can typically find this ID in the etc\/email_templates.xml file of the core modules. In this article, I will perform an override of the &#8220;New Account Confirmation Key&#8221; email template, which is sent when a user completes the registration process and needs to verify their email to activate their account.<\/p>\n\n\n\n<p><strong>Step 1:<\/strong><br>In your custom module, create the file app\/code\/Vendor\/Module\/etc\/email_templates.xml with the following code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:module:Magento_Email:etc\/email_templates.xsd&quot;&gt;\n    &lt;template id=&quot;customer_create_account_email_confirmation_template&quot; label=&quot;New Account Confirmation Key&quot; file=&quot;account_new_confirmation.html&quot; type=&quot;html&quot; module=&quot;Vendor_Module&quot; area=&quot;frontend&quot;\/&gt;\n&lt;\/config&gt;\n<\/pre><\/div>\n\n\n<p><strong>Step 2:<\/strong><br>Next, create the file app\/code\/Vendor\/Module\/view\/frontend\/email\/account_new_confirmation.html. <\/p>\n\n\n\n<p>Note: the html file name must match the <code>file=\"\"<\/code> attribute in email_templates.xml.<br>The HTML content in the account_new_confirmation.html file you can copy in the core module or use the code below to customize according to your needs:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;!--\n\/**\n * Copyright \u00a9 Magento, Inc. All rights reserved.\n * See COPYING.txt for license details.\n *\/\n--&gt;\n&lt;!--@subject {{trans &quot;Please confirm your %store_name account&quot; store_name=$store.frontend_name}} @--&gt;\n&lt;!--@vars {\n&quot;var store.frontend_name&quot;:&quot;Store Name&quot;,\n&quot;var this.getUrl($store,'customer\/account\/confirm\/',&#x5B;_query:&#x5B;id:$customer.id,key:$customer.confirmation,back_url:$back_url],_nosid:1])&quot;:&quot;Account Confirmation URL&quot;,\n&quot;var this.getUrl($store, 'customer\/account\/')&quot;:&quot;Customer Account URL&quot;,\n&quot;var customer.email&quot;:&quot;Customer Email&quot;,\n&quot;var customer.name&quot;:&quot;Customer Name&quot;\n} @--&gt;\n\n{{template config_path=&quot;design\/email\/header_template&quot;}}\n\n&lt;!-- Your custom email template HTML code --&gt;\n&lt;p class=&quot;greeting&quot;&gt;{{trans &quot;%name,&quot; name=$customer.name}}&lt;\/p&gt;\n&lt;p&gt;{{trans &quot;You must confirm your %customer_email email before you can sign in (link is only valid once):&quot; customer_email=$customer.email}}&lt;\/p&gt;\n\n&lt;table class=&quot;button&quot; width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;&gt;\n    &lt;tr&gt;\n        &lt;td&gt;\n            &lt;table class=&quot;inner-wrapper&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; align=&quot;center&quot;&gt;\n                &lt;tr&gt;\n                    &lt;td align=&quot;center&quot;&gt;\n                        &lt;a href=&quot;{{var this.getUrl($store,'customer\/account\/confirm\/',&#x5B;_query:&#x5B;id:$customer.id,key:$customer.confirmation,back_url:$back_url],_nosid:1])}}&quot; target=&quot;_blank&quot;&gt;{{trans &quot;Confirm Your Account&quot;}}&lt;\/a&gt;\n                    &lt;\/td&gt;\n                &lt;\/tr&gt;\n            &lt;\/table&gt;\n        &lt;\/td&gt;\n    &lt;\/tr&gt;\n&lt;\/table&gt;\n\n{{template config_path=&quot;design\/email\/footer_template&quot;}}\n<\/pre><\/div>\n\n\n<p>At the beginning of the code snippet, Magento provides us with appropriate var variables for each type of email template, making it easier for us to customize. After finishing the customization, remember to save your changes, clear the cache, and perform testing to ensure everything is functioning as expected.<\/p>\n\n\n\n<p>Additionally, you may consider using a <a href=\"https:\/\/www.magetop.com\/magento-2-smtp-extension.html\" target=\"_blank\" rel=\"noreferrer noopener\">Magento 2 SMTP Extension<\/a> to enhance the email delivery capabilities of your store<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Customizing email templates in Magento 2 is essential for delivering personalized and branded communication to customers. However, directly modifying core templates can lead to issues during system updates and potential loss of changes. To avoid this, it is recommended to override templates using a custom module, ensuring long-term stability and customization flexibility.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.<\/p>\n","protected":false},"author":108,"featured_media":8639,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[2082,124,107],"class_list":["post-8635","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-how-to-override-email-templates-in-custom-module-in-magento-2","tag-magento","tag-magento-2-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Override Email Templates in Custom Module in Magento 2<\/title>\n<meta name=\"description\" content=\"In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Override Email Templates in Custom Module in Magento 2\" \/>\n<meta property=\"og:description\" content=\"In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-24T10:18:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-29T12:37:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1500\" \/>\n\t<meta property=\"og:image:height\" content=\"770\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Callula Huy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Callula Huy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\"},\"author\":{\"name\":\"Callula Huy\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\"},\"headline\":\"How to Override Email Templates in Custom Module in Magento 2\",\"datePublished\":\"2023-08-24T10:18:36+00:00\",\"dateModified\":\"2024-03-29T12:37:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\"},\"wordCount\":536,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1\",\"keywords\":[\"How to Override Email Templates in Custom Module in Magento 2\",\"magento\",\"magento 2 tutorials\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\",\"name\":\"How to Override Email Templates in Custom Module in Magento 2\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1\",\"datePublished\":\"2023-08-24T10:18:36+00:00\",\"dateModified\":\"2024-03-29T12:37:26+00:00\",\"description\":\"In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1\",\"width\":1500,\"height\":770,\"caption\":\"How to Override Email Templates in Custom Module in Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Override Email Templates in Custom Module in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\",\"name\":\"Callula Huy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"caption\":\"Callula Huy\"},\"description\":\"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.\",\"sameAs\":[\"http:\/\/magetop.com\"],\"url\":\"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Override Email Templates in Custom Module in Magento 2","description":"In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"How to Override Email Templates in Custom Module in Magento 2","og_description":"In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.","og_url":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2023-08-24T10:18:36+00:00","article_modified_time":"2024-03-29T12:37:26+00:00","og_image":[{"width":1500,"height":770,"url":"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png","type":"image\/png"}],"author":"Callula Huy","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Callula Huy","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/"},"author":{"name":"Callula Huy","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9"},"headline":"How to Override Email Templates in Custom Module in Magento 2","datePublished":"2023-08-24T10:18:36+00:00","dateModified":"2024-03-29T12:37:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/"},"wordCount":536,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1","keywords":["How to Override Email Templates in Custom Module in Magento 2","magento","magento 2 tutorials"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/","name":"How to Override Email Templates in Custom Module in Magento 2","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1","datePublished":"2023-08-24T10:18:36+00:00","dateModified":"2024-03-29T12:37:26+00:00","description":"In this article, I will guide you on how to effectively override email templates in Magento 2 using a custom module.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1","width":1500,"height":770,"caption":"How to Override Email Templates in Custom Module in Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/how-to-override-email-template-in-custom-module-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Override Email Templates in Custom Module in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9","name":"Callula Huy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","caption":"Callula Huy"},"description":"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.","sameAs":["http:\/\/magetop.com"],"url":"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/08\/How-to-Override-Email-Templates-in-Custom-Module-in-Magento-2.png?fit=1500%2C770&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-2fh","jetpack-related-posts":[{"id":1067,"url":"https:\/\/www.magetop.com\/blog\/customize-cover-illustration-layout-in-magento-2\/","url_meta":{"origin":8635,"position":0},"title":"Customize Cover, Illustration Layout In Magento 2","author":"Adam Roger","date":"January 2, 2020","format":false,"excerpt":"Our previous post is How to create new theme in Magento 2. I think you guys should read it. To continue the previous post, we will introduce you to Customize cover, illustration layout in Magento 2.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Customize Cover, Illustration Layout Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Cover-Illustration-Layout.png?fit=750%2C445&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Cover-Illustration-Layout.png?fit=750%2C445&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Cover-Illustration-Layout.png?fit=750%2C445&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/01\/Customize-Cover-Illustration-Layout.png?fit=750%2C445&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5594,"url":"https:\/\/www.magetop.com\/blog\/customize-email-templates-in-magento-2\/","url_meta":{"origin":8635,"position":1},"title":"How To Customize Email Templates In Magento 2","author":"Aaron LX","date":"July 14, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Customize Email Templates In Magento 2. The most effective communication method to interact with customers is email.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Customize Email Templates In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Customize-Email-Templates-In-Magento-2.png?fit=904%2C537&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Customize-Email-Templates-In-Magento-2.png?fit=904%2C537&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Customize-Email-Templates-In-Magento-2.png?fit=904%2C537&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Customize-Email-Templates-In-Magento-2.png?fit=904%2C537&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":8713,"url":"https:\/\/www.magetop.com\/blog\/how-to-create-and-send-newsletters-in-magento-2\/","url_meta":{"origin":8635,"position":2},"title":"How to Create and Send Newsletters in Magento 2: Step-by-Step Tutorial","author":"Callula Huy","date":"October 12, 2023","format":false,"excerpt":"In this step-by-step guide, we will provide you with comprehensive instructions on how to create and send newsletters in Magento 2.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How to Create and Send Newsletters in Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/10\/How-to-Create-and-Send-Newsletters-in-Magento-2.png?fit=1200%2C800&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/10\/How-to-Create-and-Send-Newsletters-in-Magento-2.png?fit=1200%2C800&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/10\/How-to-Create-and-Send-Newsletters-in-Magento-2.png?fit=1200%2C800&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/10\/How-to-Create-and-Send-Newsletters-in-Magento-2.png?fit=1200%2C800&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2023\/10\/How-to-Create-and-Send-Newsletters-in-Magento-2.png?fit=1200%2C800&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5677,"url":"https:\/\/www.magetop.com\/blog\/configure-magento-2-newsletter\/","url_meta":{"origin":8635,"position":3},"title":"How To Configure Magento 2 Newsletter","author":"Aaron LX","date":"May 20, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Configure Magento 2 Newsletter. Send newsletters to customers about the latest store activities.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Configure Magento 2 Newsletter","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Magento-2-Newsletter.png?fit=1080%2C640&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Magento-2-Newsletter.png?fit=1080%2C640&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Magento-2-Newsletter.png?fit=1080%2C640&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Magento-2-Newsletter.png?fit=1080%2C640&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/05\/How-To-Configure-Magento-2-Newsletter.png?fit=1080%2C640&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":5587,"url":"https:\/\/www.magetop.com\/blog\/configure-shipment-emails-in-magento-2\/","url_meta":{"origin":8635,"position":4},"title":"How To Configure Shipment Emails In Magento 2","author":"Aaron LX","date":"July 15, 2021","format":false,"excerpt":"In this post, I will guide you on\u00a0How To Configure Shipment Emails In Magento 2. Email customers updates on their orders, shipments, and order tracking information.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Configure Shipment Emails In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Shipment-Emails-In-Magento-2.png?fit=1200%2C714&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Shipment-Emails-In-Magento-2.png?fit=1200%2C714&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Shipment-Emails-In-Magento-2.png?fit=1200%2C714&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Shipment-Emails-In-Magento-2.png?fit=1200%2C714&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Shipment-Emails-In-Magento-2.png?fit=1200%2C714&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":6589,"url":"https:\/\/www.magetop.com\/blog\/configure-invoice-emails-in-magento-2\/","url_meta":{"origin":8635,"position":5},"title":"How To Configure Invoice Emails In Magento 2","author":"Aaron LX","date":"July 16, 2021","format":false,"excerpt":"In this post, I will guide you on How To Configure Invoice Emails In Magento 2. Send invoice emails to customers after customers buy a product from your Magento 2 store.","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Configure Invoice Emails In Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Invoice-Emails-In-Magento-2.png?fit=1200%2C711&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Invoice-Emails-In-Magento-2.png?fit=1200%2C711&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Invoice-Emails-In-Magento-2.png?fit=1200%2C711&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Invoice-Emails-In-Magento-2.png?fit=1200%2C711&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/07\/How-To-Configure-Invoice-Emails-In-Magento-2.png?fit=1200%2C711&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/8635","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=8635"}],"version-history":[{"count":5,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/8635\/revisions"}],"predecessor-version":[{"id":8900,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/8635\/revisions\/8900"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/8639"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=8635"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=8635"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=8635"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}