I need to send notes of acknowledgment to each of my recurring donors with the total recurring donation amount recorded in the email.
There has to be a way to generate recurring donation totals per individual profile in an email without manually searching for the results for each profile in a filter. Is this something that could be generated through Liquid, perhaps?
If you need to display the total amount a donor has contributed to your organization exclusively through recurring donations, you can do so using the following liquid:
{% assign sum = 0 %}
{% for donation in recipient.donations %}
{% if donation.is_recurring %}
{% assign sum = sum | plus: donation.amount_in_cents %}
{% endif %}
{% endfor %}
${{ sum | divided_by:100 }}
Showing 1 reaction
Sign in with