How to Manage Mailing Templates in Omnitron?

This tutorial provides step-by-step instructions for managing Mailing Templates in Omnitron.

Step 1: Access to Omnitron​

  • Get access to the Omnitron panel.

  • Enter your Username and Password, and then click the Sign In button.

Step 2: Navigate to Mailing Template Page​

  • Follow the Sales Channels > Content Management sidebar and click the Mailing Templates page.

  • This page displays mailing templates for management purposes.

Step 3: Adding Mailing Templates​

  • To add a new mailing template , click the + New Mailing Templates button. Complete the form by filling in the following fields:

    • Name: Select one of the default email templates, e.g., for sending a welcome email upon user registration.

    • Status: Select whether the template is active or inactive.

    • Language: Select the language for the mailing template from the options available in Omnitron, aligning with local languages.

    • Content: Input the email content in HTML format.

  • Once the relevant fields are completed, click the Save button.

Step 4: Dynamic Mailing Templates for Order Cancellations​

The Dynamic_Cancel_Mail_Template_Url in the api/v1/dynamic setting serves to create a custom mail template for order cancellations based on primary keys representing cancellation reasons. It is essential to define the Dynamic_Cancel_Mail_Template_Url with the CancellationReason primary key as the key and the corresponding template path as the value.

The process follows these rules:

  1. The system checks the cancellation reasons associated with the primary keys of the order items that trigger the email. If a custom template is specified in Dynamic_Cancel_Mail_Template_Url, that template takes precedence.

  2. In case there is no match within the definitions of Dynamic_Cancel_Mail_Template_Url, the system retrieves the template information specified in the channel's configuration details under cancel_mail_template_url.

  3. If, even then, no cancel_mail_template_url is found, the system resorts to reading the template value in the Cancel_Mail_Template_Url setting.

  4. In scenarios where the Cancellation Reasons for the canceled order items vary, the system selects the template based on the first one specified in Dynamic_Cancel_Mail_Template_Url.

Last updated

Was this helpful?