Donation page variables

Donation and Donation (v2) pages

Variable Description
contentDisplays content specified in page's Intro section
e.g. {{ page.donation.content }}
amount_goal_formatDonation goal for page formatted (e.g. $12.37) e.g. Amount of money set as the goal for the donation page
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
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 }}
donation_frequencyHow often the donor will be charged. Returns either 'monthly' or 'one-time' e.g. {{ page.donation.donation_frequency }}
amountsArray of default donation amounts
accepts_single_amount?Checks whether the page accepts only a single amount e.g. {% if page.donation.accepts_single_amount? %}
accepts_variable_amounts?Checks whether the page accepts multiple amounts e.g. {% if page.donation.accepts_variable_amounts? %}
form_amount_optionsAmounts set by control panel user if "Accept multiple amounts" enabled e.g.
amount_formattedAmount set by control panel user if "Accept multiple amounts" disabled e.g. {{ page.donation.amount_formatted }}

Donation (v2) pages only

Variable Description
currency_symbolThe symbol of the nation's default currency
e.g. {{ page.donation_v2.currency_symbol }}
interval_monthly?Checks if the donor has selected monthly payments
{% if page.donation_v2.interval_monthly? %}
url_query_amountValue specified by the ?amount= URL param used to prefill the amount
e.g. {{ page.donation_v2.url_query_amount }}
confirmation_amountDisplays the selected amount to the donor before they submit the form
e.g.
ticket_purchase_totalWhen a ticket order is present, displays the total cost
e.g. {{ page.donation_v2.ticket_purchase_total }}
monthly_recurring_radio_buttonsRadio buttons presented to donor to toggle between one-time/recurring donations
e.g. {{ page.donation_v2.monthly_recurring_radio_buttons }}
amount_otherInput for donor to enter custom amount if multiple amounts accepted
e.g. {{ page.donation_v2.amount_other }}

Donation pages only

Variable Description
minimum_amountMinimum donation amount e.g. {{ page.donation.minimum_amount }}
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? %}
show_recent_donor?Checks if the most recent donor should be shown e.g. {% if page.donation.show_recent_donor? %} This variable has been deprecated in favor of {% page.show_stream? %}
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? %}
form_expires_onField for credit card expiration e.g.
max_installmentsThe maximum number of installment payments a donation is allowed to be broken into e.g. {{ page.donation.max_installments }}
Do you like this page?