How do I generate coupon code to waive off delivery charge or give discount?

  • kentzo
    Asked on November 9, 2019 at 4:50 AM

    I know i can generate coupon code when using the normal Purchase Order Shopping cart feature.

    However in this case I am not using the normal Purchase Order shopping cart widget, how can i achieve the feature of coupon code to waive off delivery fees or give 10% discount code?

  • roneet
    Replied on November 9, 2019 at 8:32 AM

    Yes, you can apply the coupon code to the total. You would have to perform the calculations in the Form Calculation widget:

    https://www.jotform.com/help/259-How-to-Perform-Form-Calculation-Using-a-Widget 

    Next, you can pass the total to the payment field: https://www.jotform.com/help/275-How-to-Pass-a-Calculation-to-a-Payment-Field 

    Could you please confirm your requirements?

    Do you want to give a 10% discount for all the users or based on special criteria?

    Please confirm your requirement.

    Thansk.

  • kentzo
    Replied on November 9, 2019 at 6:23 PM

    I would like to give a 10% discount off the total amount when user key in the coupon that I send to them via email. For example : 10%OFFCODE

    Another scenario which I am thinking of is to waive off the delivery fees that was imposed to them when they key a specific coupon, for example: FREEDELIVERY

  • David JotForm Support Manager
    Replied on November 9, 2019 at 7:37 PM

    You would need to add a Short Text Entry field which you can name as "Coupon code", a new Form Calculation widget which you can name as "Discount total".

    Then, create a condition to calculate the discount, example:

    1573345829total Screenshot 10

    Finally, add a new Form Calculation widget, this should be the one that has the total amount to be paid(Total Amount - Discount Total), so you can do this calculation:

    1573346128total Screenshot 21

    If you will waive off the delivery fee, you just need to create a new condition to calculate the total to be discounted based on the code entered.

    Let us know if you need more help.