PayPal Donations
[resolved] Add gift aid question? (5 posts)

  1. niroc
    Posted 2 years ago #

    I haven't updated yet because I can't work out how to include an important question about gift aid which is worth an extra 25% to us. Please see the example at http://dunnettcentral.org/success . How can I add this question and choice of 2 answers to the new version?


  2. Johan Steen
    Plugin Contributor

    Posted 2 years ago #


    Looking at the html at your link, it seems like you have a modified version of the plugin. You can do a similar modification with the latest version by modifying views/paypal-button.php, and you should be sorted.

    I'll try to include a filter for the entire form for the next version, so you can do modifications like this, without modifying the plugin source - which will make the modification survive plugin upgrades.


  3. niroc
    Posted 2 years ago #

    That has worked a treat. Thank you so much for your help and continued development of this brilliant plugin!

  4. niroc
    Posted 2 years ago #

    I remember how hard I found it to add the Gift Aid question the first time I used it, so in case someone else comes looking for it one day, here's an example of what to add to views/paypal-button.php:

    /* Gift Aid question*/
    $paypal_btn .=	'<table><tr><td>Are you a UK income tax payer and can we claim
    <a href="http://www.tax-effective-giving.org.uk/?pageid=What_is_Gift_Aid.xml" target="blank">GiftAid</a> on your donation?</td></tr>
    <tr><td><input type="hidden" name="on1" value="Gift Aid"></td></tr><tr><td><select name="os1">
    <option value="No">No</option><option value="Yes, please claim">Yes, please claim</option>
    /*end of Gift Aid question*/
  5. MAUrul
    Posted 1 year ago #

    Hi there,

    I need to enable the exact same thing on another plugin I'm using (http://wordpress.org/extend/plugins/wordpress-donation-plugin-with-goals-and-paypal-ipn-by-nonprofitcmsorg/)

    I have no idea where to add the above line of code, tried a few times but unsuccessful :( got fatal errors! :)

    Would be great if I could get some help regarding this...

    Looking forward to hearing from you.

    All the best,

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic