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

    541-template-editor-email-listing.png

  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.

    541-template-editor-notification-details.png

  3. Scroll down the details page and locate the 'Dynamic message' button in the Scheme section.

    541-scheme-dynamic-message.png


    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.

    541-template-editor-invoice.png



    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.

    541-template-editor-twig-content.png


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

541-edited-templates-list.png

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?