Versions Compared

Key

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

...

<a href="{{recommendations.url}}">
<img src="{{recommendations.img}}" style="max-width: 80%;">
<p>{{recommendations.name}}</p>
<p>$ <p>{{recommendations.price | round: 0 | divided_by: 100 money: "AUD" }}</p>
</a>

The Liquid markup requires the pattern {{recommendations.<name of attribute>}} plus you can see some an additional filters have filter has been added to the price field:

Note, because the price field from the product feed is in cents, 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 .

By adding money filter and your currency acronym it will add the appropriate symbol in front of it, e.g. from 21.00 to $21.00

...

All of the Dotdigital Liquid filters you can use are listed here: https://support.dotdigital.com/en/articles/8198944-filter-liquid-outputs

...