Loading
Donation page variables
Variable Description
contentDisplays content specified in page's admin section
e.g. {{ page.donation.content }}
minimum_amountMinimum donation amount e.g.
amount_goalDonation goal for page e.g. Amount of money set as the goal for the donation page
has_amount_goal?Checks if page has a donation goal set e.g. {% if page.donation.has_amount_goal? %}
has_met_amount_goal?Checks if the goal has been met e.g. {% if page.donation.has_met_amount_goal? %}
percent_of_amount_goalPercent of amount goal met e.g. {{ page.donation.percent_of_amount_goal }}
donor_goalDonor goal e.g. The number of donors set as the goal for the donation page
show_recent_donor?Checks if the most recent donor should be shown e.g. {% if page.donation.show_recent_donor? %}
has_donor_goal?Checks if page has a donor goal set e.g. {% if page.donation.has_donor_goal? %}
has_met_donor_goal?Checks if page has met the donor goal e.g. {% if page.donation.has_met_donor_goal? %}
percent_of_donor_goalPercentage of donor goal met e.g. {{ page.donation.percent_of_donor_goal }}
merchant_accountMerchant or bank account e.g.
{{ page.donation.merchant_account.accepted_card_icons }}
amountsArray of default donation amounts
form_amount_optionsAmount people are able to donate in e.g.
form_expires_onField for credit card expiration e.g.
Do you like this page?

Showing 3 reactions


Jesse Haff commented 2012-04-06 14:45:12 -0700 · Flag
If you create a custom theme and take a look at the donation page template, you’ll see how it is used. Namely {{ page.donation.amount_goal_format }} will output the dollar amount goal for the donation page if one is set.
Will McMillian commented 2012-04-06 14:40:42 -0700 · Flag
how does one use page.donation.amount_goal