All Collections
Store Setup
Email Notifications
Editing Notification's Dynamic Content
Editing Notification's Dynamic Content

Learn how to change the contents of a dynamic message attached to an email notification.

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

The dynamic content of email notifications (if it exists) is added to the message below the main text (default location).

541-dynamic-content-default.png

Alternatively, you can insert it in a different location within the notification via the variable %dynamic_message%.

541-dynamic-content-on.png

To change the dynamic content of a notification:

  1. Open the email notifications list in your store's Admin area and proceed to the notification details page. See details described in Editing the Texts of Email Notifications.

  2. Locate the "Dynamic message" field and click the "Edit" button opposite it.


    A dynamic message editor will open in a new tab:

    540-dymamic-content.png


    In case there is no dynamic content embedded, the page may look as follows:


    โ€‹


    In the above notification, the dynamic message is empty. If you need to use a specific TWIG code, use the template tree on the left-hand side of the screen to choose the TWIG file you require. We recommend using the WYSIWYG editor on the "Edit notification" page for plain text.


  3. To edit the dynamic content, click either on a file path to the left or double-click on highlighted content to the right.

    540-dynamic-click-to-edit.png


    This opens a new tab with a twig file code.

    540-dynamic-content-twig.png
  4. Edit the twig code the way you need it.

  5. Click Save changes.

Related pages:

Did this answer your question?