Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

preezie Integration Video Explainer (6 minutes)

Aura embed
paramsJTdCJTIyaW5wdXRVcmwlMjIlM0ElMjJodHRwcyUzQSUyRiUyRnd3dy5sb29tLmNvbSUyRnNoYXJlJTJGOGZjZjg3NWUzNTQzNDI1YWJkZTk0YTk4MGZkNjkwZTYlM0ZzaWQlM0QwN2Y5MjU5ZS05N2RkLTRmYTMtYTYyOC1kNTZiZjc2MGZhNjYlMjIlMkMlMjJlbWJlZFR5cGUlMjIlM0ElMjJsb29tJTIyJTJDJTIyd2lkdGglMjIlM0ElMjI2MDBweCUyMiUyQyUyMmhlaWdodCUyMiUzQSUyMjYwMHB4JTIyJTJDJTIyYWxpZ25tZW50JTIyJTNBJTdCJTIyaG9yaXpvbnRhbCUyMiUzQSUyMmNlbnRlciUyMiU3RCU3RAJTdCJTIyaW5wdXRVcmwlMjIlM0ElMjJodHRwcyUzQSUyRiUyRnd3dy5sb29tLmNvbSUyRnNoYXJlJTJGOGZjZjg3NWUzNTQzNDI1YWJkZTk0YTk4MGZkNjkwZTYlM0ZzaWQlM0QwN2Y5MjU5ZS05N2RkLTRmYTMtYTYyOC1kNTZiZjc2MGZhNjYlMjIlMkMlMjJlbWJlZFR5cGUlMjIlM0ElMjJsb29tJTIyJTJDJTIyd2lkdGglMjIlM0ElMjI2MDBweCUyMiUyQyUyMmhlaWdodCUyMiUzQSUyMjM4MHB4JTIyJTJDJTIyYWxpZ25tZW50JTIyJTNBJTdCJTIyaG9yaXpvbnRhbCUyMiUzQSUyMmNlbnRlciUyMiU3RCU3RA==

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

...