Jump to content

Fundraising/Internal-facing/CiviCRM/CiviCRM tokens

From Wikitech

We provide a number of special tokens that can be used in our transactional email templates (e.g. thank you emails, recurring failure emails). These live in the wmf_url group. Where relevant, all of these generate personalized links with contact id and checksum, so the donor will already be logged in.

  • {wmf_url.donorPortalUrl}: If the donor is eligible to use their donor account, returns their personalized link to log in. If not, it will give an empty string. Specifically, it checks that their donor segments is 300 or higher (not a $1000 plus major donor), that they are a donor, that their preferred language is English and that they do not have any active recurring donations via Paypal directly (as these cannot be managed in their donor account, Paypal via Gravy can be).
  • {wmf_url.unsubscribe}: Returns the donor's personalized email preferences center link.
  • {wmf_url.cancel}: Returns a link to the website page on cancelling a recurring donation. In English communications,this should no longer be used as the donor should either get a donor portal link or instructions to cancel directly (as the link the website will direct them to their donor account, which won't help them if they have a Paypal direct recurring). In non-English communications, we'll continue to use this as normal.
  • {wmf_url.new_recur}: Returns a donate wiki link to restart a recurring donation that is personalized as much as possible to the donor (including language, frequency, amount, country and checksum).