Trigger update_checkout without triggering form validation
-
Hello,
My checkout page is in the following order:
- coupon form
- cart
- checkout form and payment fields etc.
I am doing a custom coupon submission to hook into an external API. On success, I call
$('body').trigger('update_checkout');
which causes the order review area to update, showing coupon success messages as well as the updated cart totals — all good!However, it also triggers the checkout form validation, so that all the form fields show errors (having not been filled out when the customer submits the coupon).
How can I either:
- Cause only the order review area/cart to be updated
- Call update_checkout without triggering form validation
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Trigger update_checkout without triggering form validation’ is closed to new replies.