Versions Compared

Key

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

...

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

{{recommendations.id}}

The SKU or unique ID of your product

Product name

{{recommendations.name}}

Product name

Product link

{{recommendations.url}}

Product page link

Price

{{recommendations.price}}

Price

Match score

{{recommendations.score}}

The product’s match score based on the preezie user’s quiz answers

Custom

{{recommendations.skin__concern}}

Any custom variables you have passed to Dotdigital via CMS product attributes