The Donation
object contains information related to a Neon Fundraise donation.
Availability: The Donation
object is available in editable areas and dictionary entries on the post-donation thank you page, and all automated emails related to donations. The latter includes:
- Donation Confirmation
- Offline Donation emails
- Recommitment Charge email
- Recurring Donation emails
- Registration emails
- Member/Team Donation Notification emails
- Ticket Purchased emails
- User to User Thank You
When a donation is matched, an array of matching donations (Donation
object) can be accessed in associated emails and interfaces by using the Matching_Donations
handle. Click here to learn more.
Attributes: The Donation
object has the following attributes:
-
Donation.Donor_Display_Name
-
Donation.Amount
-
Donation.Date
-
Donation.Message
- Donation.Hide_Name
-
Donation.Recipient (Goal object)
-
Donation.Additional_Donation
-
Donation.Is_Company_Donation
- Donation.Is_Corp_Sponsorship
- Donation.Is_Pledge
- Donation.Is_Verified
- Donation
While the Donation
object itself isn't very useful without attributes, you can use the field_by_label
filter to return the value of a custom field listed for a given donation:
{{ Donation | field_by_label: "How did you hear about us?" }}
From a friend
Donation.Donor_Display_Name
Returns the display name of the donor — display name if provided, otherwise the donor's actual name. The donor determines whether the donor's actual name or a different given display name should be displayed when they submit their donation.
Donation.Amount
Returns the donation amount. Use a money
filter to return the value in a monetary format:
{{ Donation.Amount | money }}
$54
Donation.Date
Returns the date and time the donation was made. Use a date
filter to return the value in a recognized format:
{{ Donation.Date | date: "%B %d, %Y, %I:%M %p" }}
January 1, 2019, 08:16 PM
Donation.Message
Returns the personal message submitted by the donor with the donation.
Donation.Hide_Name
Returns true if the donor requested to remain anonymous. Use an if tag to display desired content.
Donation.Recipient
Returns the recipient of the donation — the campaign or fundraising page that receives the credit for the donation and whose amount raised will be increased. The recipient can be the campaign, a team page, or a personal fundraising page. Donation.Recipient is a Goal object.
Donation.Additional_Donation
Returns the amount added as a donation to a ticket purchase. Only applies to ticket purchases. Use a money
filter to return the value in a monetary format:
{{ Donation.Additional_Donation | money }}
$18
Donation.Is_Company_Donation
Returns true if the donation is marked as a company donation. Use an if tag to display desired content.
Donation.Is_Corp_Sponsorship
Returns true if the donation is marked as a corporate sponsorship. Use an if tag to display desired content.
Donation.Is_Pledge
Returns true if the donation is marked as a pledge. Use an if tag to display desired content.
Donation.Is_Verified
Returns true if the donation is verified. Use an if tag to display desired content.