Where are all the Magento email templates located?

76,473

Solution 1

app/locale/en_US/template/email/ is the default place/locale. You should not customize them in the filesystem, or if you do, plan on protecting & merging when you upgrade.

You can customize them (albeit somewhat wonkily) via System > Transactional Emails. In this area you select the base file for your locale and alter the content, which is then stored in the database.

Solution 2

for Magento 1.9.x.x

app/locale/lang_CODE/template/email

for Magento 2.x

app/design/frontend/YOURPACKAGE/YOURTHEME/

Solution 3

Here is a free plugin that lets your override the email templates: https://www.yireo.com/software/magento-extensions/email-override

This is where you place the overrides:

app/design/frontend/{PACKAGE}/{THEME}/locale/{LOCALE}/template/email

So if I was overriding this file:

app/locale/en_US/template/email/account_new.html

and if my package name is "package" and my theme is "default", I would place my override file here:

app/design/frontend/package/default/locale/en_US/template/email/account_new.html
Share:
76,473
datasn.io
Author by

datasn.io

Not funny at all

Updated on August 25, 2020

Comments

  • datasn.io
    datasn.io over 3 years

    Magento seems to have lots of email templates to send a variety of different messages based on user activities: registration, password recovery, order, shipment, etc.

    Where can I find all the email templates so I can customize them ALL and never miss one of them to avoid looking bad when the user sees a poorly worded default template?

    Are they all located in one location / directory?

  • datasn.io
    datasn.io about 12 years
    Thanks! But this kind of sucks because I have to: 1) create 36 email templates from Magento default ones, 2) assign these created templates one by one to each of the 36 functionalities that use email templates which are scattered across all different panels in System -> Configuration........what were they thinking....
  • datasn.io
    datasn.io about 12 years
    Wait a minute, I thought there's a locale directory inside each theme, such as the modern theme: /app/design/frontend/default/modern/locale/en_US.....So if I create email templates there in template/email, would they be used over the system default ones?
  • datasn.io
    datasn.io about 12 years
    Sucks, it doesn't work that way.... email templates should by all means be considered part of the theme...
  • benmarks
    benmarks about 12 years
    No, locale will contain an IDO-coded dir (for chosen locale) which contains a translate.csv file. This file is used to collect translations particular to a theme + locale setting. It should be trivial to get the email templates to use theming logic though... gets me thinking...
  • CaitlinHavener
    CaitlinHavener about 11 years
    Where are the emails located that are created via system>transactional emails!?
  • benmarks
    benmarks about 11 years
    @user1964129 - core_email_template table.
  • HenryHayes
    HenryHayes over 2 years
    The GitHub repository for the above mentioned extension is here: github.com/yireo-magento1/Yireo_EmailOverride