There doesn't appear to be a liquid variable available for "largest amount donated," so how can I include this information in a blast?
Official response from Adam Knight
You have to assign the donations to an array, sort by the amount, and then choose the last one to display:
{% assign my_array = recipient.donations | sort: 'amount_in_cents' %}
{% for donation in my_array %}
{% if forloop.last == true %}
{{donation.amount_format }}
{% endif %}
{% endfor %}
Share this post
Showing 1 reaction
Sign in with