All Collections
Look and Feel
Theme Tweaker (X-Cart 5.4.x and earlier)
Customizing Email Notifications (X-Cart 5.4.x and earlier)
Customizing Email Notifications (X-Cart 5.4.x and earlier)

Learn how to customize dynamic messages with the help of the Template Editor tool.

Olga Tereshina avatar
Written by Olga Tereshina
Updated over a week ago

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.

The Template Editor tool of the Theme Tweaker add-on allows the users of X-Cart software editions to customize the default dynamic messages included in the email notifications.

For this purpose:

  1. Open the Email Notifications page of your store's Admin area (Store setup > Email Notifications ).


  2. 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.


  3. 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.

  4. 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.

  5. 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.twig file. We will delete the highlighted code from the file to remove the Shipping Method section from the invoice email notification.

  6. Click Save changes.

The changed template will be automatically renamed from mail/common/order/invoice/parts/bottom.methods.shipping.twig to 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.

Related pages:

Did this answer your question?