Skip to main content

How to display the sum of recipient's recurring donations

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?

Official response from

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 }}

Share this post

Showing 1 reaction

How would you tag this suggestion?
Please check your e-mail for a link to activate your account.