Mastering the new customization language
To achieve your simple and complex customization use cases, you can and should use the new customization language made available in your interface. This language has been abstracted for the majority of simple or recurring use cases.
This new personalization language is based on an open-source language developed by Shopify , Liquid . Designed to be simple and easy to use , it allows users to dynamically personalize their emails and other content, without the need for advanced programming skills.
This new language offers variables, conditions, loops and other functions to customize your content. You can format text or apply mathematical calculations.
One of its main strengths is its simplicity . Beginners can easily learn the basics of the language in a short time, while advanced users can leverage its flexibility to address sophisticated and highly dynamic customization use cases. Moreover, it is integrated with many popular platforms , making it a popular choice among integrators.
-
Simple example
You can insert a variable using the syntax {{contact.firstname}}
or condition part of your email based on the contact's language like this {% if contact.language == "FR"%} Bonjour {%else%} Hello {% endif %}
-
Examples of use cases | Corresponding variables with the new Liquid language |
Scope contact To add the firstname variable (formerly | |
Scope contact To add the unsubscribe link variable (formerly | |
Scope contact To display a variable based on language (formerly with | |
Scope contact & product | |
Scope command | |
Product scope To display products based on certain product IDs | |
Scope contact With an example mixing condition and custom field | |
Scope command | |
Product scope To display products whose list is in a custom field of the | |
Product scope To display products online | |