Book Image

Magento 2 Development Cookbook

Book Image

Magento 2 Development Cookbook

Overview of this book

With the challenges of growing an online business, Magento 2 is an open source e-commerce platform with innumerable functionalities that gives you the freedom to make on-the-fly decisions. It allows you to customize multiple levels of security permissions and enhance the look and feel of your website, and thus gives you a personalized experience in promoting your business.
Table of Contents (18 chapters)
Magento 2 Development Cookbook
About the Author
About the Reviewers

Customizing email templates

Magento has a lot of functionality that sends emails on particular actions, such as a new order, customer information, newsletter, and many more.

When customizing the look and feel of your website, it is nice that your email templates have the same look and feel.

In this recipe, we will learn how we can do this. We will customize the new account email and we will learn how we can edit the generic header and footer of the transactional emails.

Getting ready

We will customize email templates. To test this, make sure your development environment can send emails.

Like the previous recipes, we will build the code further on the things that we have done in the previous recipes. If you don't have the complete code, you can install the start files for this recipe.

How to do it…

The following steps show how we can customize the email templates without overriding the standard templates:

  1. The email templates are located in the view folder of each module. If we want to change the...