How to add the formula from the coupon code to the calculations.

  • toppick
    Asked on September 8, 2016 at 11:53 PM

    Hi I created a coupon code but I dont know how to add the formula. I like to set $10 off on each transaction. Would you be able to help me with this please?

     

    Thank you

  • Chriistian Jotform Support
    Replied on September 9, 2016 at 1:52 AM

    I see you are using conditions to pass the calculated result to the calculation field. I also noticed that you have already setup a formula for the coupon code inside your Total Discount field.

    How to add the formula from the coupon code to the calculations Screenshot 40

    To add the discount to the "This Project Will Cost You" calculation field, you simply need to add the Total Discount field to the formula of the condition and subtract it from the total price as seen below. Do the same to the rest of the conditions with the calculation field and you're all set.

    By doing so, if a coupon code is entered and the Total Discount has a value then that value will be subtracted from the final price, but if there is no coupon code then there won't be any discount.

    How to add the formula from the coupon code to the calculations Screenshot 51

    Furthermore, since you are already using conditions to calculate the price, you do not need to also add a formula inside the Calculation Field so you can simply remove the formula inside there. Otherwise, having formula inside the calculation field and the conditions would cause a conflict with your calculations.

    How to add the formula from the coupon code to the calculations Screenshot 62

    Please let us know if you need further assistance.
    Regards.