• Resolved jnorell

    (@jnorell)


    Hello,

    I am updating a site which has a custom paypal button that sets the amount to “0.00” so the site user can specify an amount, and in trying to use this plugin for that I find I can’t – is there any way to allow the amount to be absent or set to 0?

    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Noor Alam

    (@naa986)

    @jnorell, The plugin won’t work with your custom PayPal buttons.

    Thread Starter jnorell

    (@jnorell)

    Hello, Noor

    Sorry, I didn’t explain well. The custom buttons work fine, but I wanted to get rid of them and use this plug-in instead. With this plug-in I am unable to leave the amount empty.

    Thanks,
    Jesse

    Plugin Author Noor Alam

    (@naa986)

    @jnorell, You can only do it with a donate type button.

    Thread Starter jnorell

    (@jnorell)

    The paypal documentation says it’s for buynow, too:

    If you omit this variable from Buy Now or Donate buttons, buyers enter their own amount at the time of payment.

    If I change line 826 of main.php

    //if(isset($atts['amount']) && is_numeric($atts['amount']) && $atts['amount'] > 0) {
    if(isset($atts['amount']) && is_numeric($atts['amount']) && $atts['amount'] >= 0) {

    I can specify amount=”0″ and it allows me to enter a price at paypal. With just a bit more work, the ‘amount’ could be left out entirely (fewer shortcode attributes); or you may want to require it be specified, even if it’s “0”.

    Thanks,
    Jesse

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to unset amount’ is closed to new replies.