Hello @thekayakgirls
I hope you’re well today!
Currently it’s not that simple “out of the box” I’m afraid. A foundation would be to use “Calculations” field as a source for the payment amount for PayPal field.
Then you would need to actually calculate the discount based on the coupon code and that get’s a bit more tricky. One way would be to add two “number” type fields (as they can be used in calculations) and use conditional logic to show them depending on the “coupon” input field value. Then in “Calculations” field you would set a calculation like e.g.
100 - {number-1] - {number-2}
where 100 is your full price, number-1 would be replaced with the value of first number field (which should contain amount of discount for 20% discount) and number-2 would be replaced with the value of second number field (which should contain amount of discount for 30% discount).
This would work correctly calculation the price but the problem is that those field wouldn’t be “read only” so customer could actually freely edit them. Therefore that would require some additional customization – via custom code – to make them “read only”.
Another way would be to use three separate calculations field instead. One should show only if coupon field value is equal to 20% coupon (that can be done via “Visibility” settings – conditional logic) and the second one only if coupon field value contains 30% coupon.
Then the 3rd calculations field would include a calculation such as e.g. “full price – 1st calculation – 2nd calculation” and would be used as source for payment.
Best regards,
Adam