1

I want to override magento email template file.

  • app/design/frontend/Vendor/themename/Magento_Email/email/header.html
  • app/design/frontend/Vendor/themename/Magento_Email/email/footer.html
0

Create a requirejs-config.js in the below location:

/app/code/Vendor/Module/view/frontend/requirejs-config.js

and add the below code to requirejs-config.js

var config = {
    map: {
        '*': {
          'Magento_Email/email/header.html': 'Vendor_Module/email/header.html',
          'Magento_Email/email/footer.html': 'Vendor_Module/email/footer.html',
        }
    }
};
|improve this answer|||||
  • Thanks, In my case email header is dynamic according to the stores, any solution of it. – Lokesh Das Aug 3 '18 at 14:51
  • Create different headers and footers with different name then assign those to your stores should work. – Sukumar Gorai Aug 3 '18 at 14:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.