...
preezie Integration Video Explainer (6 minutes)
Aura embed | ||
---|---|---|
|
Building emails using preezie data
...
Here we’ll show how a user’s preezie results email can be dynamically created.
Add products to
...
an email template
Either clone an existing product based email template (e.g. abandoned cart) or create a new one.
...
<a href="{{recommendations.url}}">
<img src="{{recommendations.img}}" style="max-width: 80%;">
<p>{{recommendations.name}}</p>
<p>${{recommendations.price | round: 2 0 | divided_by: 100 }}</p>
</a>
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 Note, because the price field from the product feed is in cents, I divide by 100, round it down and add a in the markup this is rounded down so it can be divided by 100 and adds a prefix of $ to change it from 3900 to $39 ${{recommendations.price | round: 0 | divided_by: 100 }}
...
All of the Liquid filters you can use are listed here: https://support.dotdigital.com/en/articles/8198944-filter-liquid-outputs
...