WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. niroc
    Member
    Posted 1 year 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?

    http://wordpress.org/extend/plugins/paypal-donations/

  2. Johan Steen
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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.

    Cheers,
    Johan

  3. niroc
    Member
    Posted 1 year ago #

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

  4. niroc
    Member
    Posted 1 year 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>
    </select></td></tr></table><br>';
    
    /*end of Gift Aid question*/
  5. MAUrul
    Member
    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,
    M

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags