Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where are all the Magento email templates located?

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?

like image 748
datasn.io Avatar asked Feb 12 '12 15:02

datasn.io


People also ask

Where is the base template file for all Magento HTML requests located?

Root template <Magento_Theme_module_dir>/view/base/templates/root. phtml is the root template for all storefront pages in the Magento application. This file can be overridden in a theme just like any other template file.

Where can I find template in Magento?

To locate the template that is responsible for a specific part of the storefront or Admin, you can use Magento built-in template hints. To enable template hints: Click Stores > Settings > Configuration > ADVANCED > Developer.

Where are Magento email templates?

In order to manage the transactional emails in Magento 2 go to Admin Panel > Marketing > Communications > Email Templates. Then, choose an email template you want to edit or you can add a new one by pressing the Add New Template button.

Where are email templates stored Magento 2?

Email templates are stored in the <module_dir>/view/<area>/email directory of their respective modules. For example, the template for the new order transactional email for the Sales module is located in <Magento_Sales_module_dir>/view/frontend/email/order_new.


2 Answers

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.

like image 82
benmarks Avatar answered Oct 20 '22 18:10

benmarks


for Magento 1.9.x.x

app/locale/lang_CODE/template/email 

for Magento 2.x

app/design/frontend/YOURPACKAGE/YOURTHEME/ 
like image 38
J.P. Avatar answered Oct 20 '22 18:10

J.P.