impress-org / givewp-snippet-library

A collection of code snippets to enhance or expand on the free Give WordPress Donation Plugin.
https://givewp.com
140 stars 91 forks source link

add {funds} pdf tag #120

Closed ravinderk closed 3 years ago

ravinderk commented 3 years ago

Description

This snippet adds the {funds} pdf tag specific to the PDF receipt addon. This tag will render the total donation amount fund title in the PDF receipt raised for the fund attached to the donation form.

Visuals

image

Testing Instructions

Add funds pdf tag to PDF Builder content before testing.

mathetos commented 3 years ago

@ravinderk This is reflecting the total amount the Fund has raised to date. See here: image

It should instead list the NAME of the fund that the donor is donating towards. So instead of:

FUND: $200

It should show:

FUND: Fund A

ravinderk commented 3 years ago

@mathetos I think I misunderstood the pdf tag outcome. I updated logic to print fund title instead of raised amount total.

commit. https://github.com/impress-org/givewp-snippet-library/compare/38a395f5583e...606185126120