PayPal processing: Adding coupons to donation payment

  • tomorrownight
    Asked on October 13, 2014 at 7:16 AM

    Hello,

    is there anyway i can add coupons for this form?

    http://form.jotformpro.com/form/42725093973967

    It has to use a donation mechanism because it is working like a shopping cart.  I need to be able to have a coupon box for people in the band and VIPs to get in for free or reduced amount.

    What would be the best solution to this?

    thanks

  • Ben
    Replied on October 13, 2014 at 10:33 AM

    Hi,

    Yes, you could do this, but you would need to use conditions. A possible problem with this is that this would be possible to find in the source code by someone that is skilled with this.

    You can set it up by creating a coupon box where they should enter the code (if they have it) and then check with the conditions. If the entered code matches the code in conditionals then you can subtract this value from the amount they are going to pay (or set it to 0).

    One way to do this would be to add another hidden field that has 0 and add it to form calculation to subtract the value from the one you already got. If they do not enter any coupon it would subtract 0 from it so it will not be changed.

    Once the match is found for coupon, just enter the value that you want for that coupon to have and it will be subtracted.

    You could also use multiple instead of subtract so you can multiple by 1 by default, which would not change the value, or multiple by 0 which would set it to 0. In same manner you can get any percentage for your coupon (example: 20% off would be [value * 0.8] ).

    I hope that makes sense, I am sorry if it does not, but if you need help setting it up, just let us know and we can help you set it up. :)

    Best Regards,
    Ben