...
Here we’ll show how a user’s preezie results email can be dynamically created.
Add products to
...
a new email template
Either clone an existing product based email template (e.g. abandoned cart) or create a new one.
...
Drag in a Text component and hit the Edit HTML icon in the menu bar:
...
Here you’ll add the HTML around the Liquid markup to show the products, e.g.
...
The Liquid markup requires the pattern {{recommendations.<name of attribute>}}
plus you can see some additional filters have been added to the price field.:
Because my the price field in from the product feed is in cents, I divide by 100, round it down and add a $ to change it ,
from 3900 to $39.
...
All of the Liquid filters you can use are listed here: https://support.dotdigital.com/en/articles/8198944-filter-liquid-outputs
Info |
---|
Note it is space sensitive! https://support.dotdigital.com/en/articles/8198942-script-content-with-advanced-personalisation#h_1701a50ed7 |
Here’s a quick guide to the standard variables from preezie_recommendations you can use:
Product feed variable | Liquid markup | Description |
---|---|---|
Product ID |
| The SKU or unique ID of your product |
Product name |
| Product name |
Product link |
| Product page link |
Price |
| Price |
Match score |
| The product’s match score based on the preezie user’s quiz answers |
Custom |
| Any custom variables you have passed to Dotdigital via CMS product attributes |