DISCLAIMER: The primary purpose of this article is to demonstrate how the Template Editor tool can help you find a template for editing, but not to describe all possible code alterations. HTML skills are required to customize the code.
For this purpose:
Open the Email Notifications page of your store's Admin area (Store setup > Email Notifications ).
Find a notification that you need to edit and open the notification details page.
In our case, it will be the 'Order Created' notification that corresponds with an email that both a customer and an admin receive after a new order.
Scroll down the details page and locate the 'Dynamic message' button in the Scheme section.
Click on it, and a random invoice will open in a new tab.
Click on a section within the invoice that you want to edit to see the corresponding .twig file.
We'll remove the Shipping method section from the invoice in our sample.
Click on the highlighted .twig file to open and edit it the way you need.
In our case, it is the
mail/common/order/invoice/parts/bottom.methods.shipping.twigfile. We will delete the highlighted code from the file to remove the Shipping Method section from the invoice email notification.
Click Save changes.
The changed template will be automatically renamed from
theme_tweaker/mail/admin/order/invoice/parts/bottom.methods.shipping.twig and will be listed in the Edited Templates page of your store's Admin area (Look and Feel -> Edited Templates).
The custom template disabling or deletion cancels the changes it applies, and the customized page reverts to its default look.