MAGENTO 1.X – CHANGE ORDER EMAIL TEMPLATES AND TRANSACTIONAL EMAILS


Magento provides by default a set of emails templates that you can reach and use as a transactional email on Backend > System > Transactional emails. You can use and change those ones as well.

Those Magento template files, are located at app/locale/<LANGUAGE>/template/email/sales/ (eg: order_new.html,order_new_guest.html), you can change them according your needs.

If you want to add some extra php logic inside them, you can add a .phtml block inside the corresponding block.

For example, to add a .phtml into the sales order email template you need to:

  • Locate the corresponding layout xml at app/design/frontend/<mytheme>/default/layout/sales.xml.
  • Add your layout update section inside the xml:
  • Add your updates inside your html mail template(eg:order_new.html):
  • Edit your email/order/customer-comments.phtml file according to your needs.
  • Deploy and test.

Moreover, you can need to change how items are listed on an order email, to do so, you will need to override inside your template the following file:

which is on the standard installation located at: