Page MenuHomePhabricator

Add token for CiviCRM emails to conditionally add Donor Portal link
Open, Needs TriagePublic

Description

This token should return true if the donor is eligible to use the donor portal (lang is english, status is not in major donors ($1000+), etc) and false otherwise. Then we can use this to conditionally display text and link to the donor portal in emails from Civi.

Event Timeline

Flagging that the audience segment threshold for donor portal links is "mid-value tier" (who has $1000 in cumulative giving in the current fiscal year) or higher. Noting these segments names and definitions may shift in the medium term.

@KHill-WMF Can we actually use the segment for this? It covers the last five fiscal years ("has given 1,000+ in one of the past 5 financial years, or in the current financial year so far"). It would make things more complicated (especially in Acoustic) if we decide to do something different as the threshold for this specifically.

But this may change somewhat, as you note.

Noting that we will also want to exclude donors based on having an active recurring Paypal (gateway = paypal), see Slack.

This comment was removed by Lars.

Change #1270041 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/crm@master] WIP: Add conditional donor portal link to tokensi

https://gerrit.wikimedia.org/r/1270041