When adding coupon auto validating fields on checkout
-
When I use WC()->cart->add_discount($coupon_code); function with the woocommerce_before_checkout_form hook it will automatically validate all the fields. Obvisouly the fields on the checkout page are not yet filled in. This makes all fields red and scroll down.
Why is it validating the checkout fields (on the checkout page) after I enter a coupon with add_discount?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘When adding coupon auto validating fields on checkout’ is closed to new replies.