Apply coupon in payment form
-
I create an order via the REST API v1 (the newest version).
After I created the order, I send the user to the checkout page.
For example:
/checkout/order-pay/182/?pay_for_order=true&key=wc_order_57b2cb6db427dOn the checkout page I have implemented the coupon form using
woocommerce_checkout_coupon_form()
If a user enters a coupon, Woocommerce returns that the coupon was succesfully applied but nothing happens with the amounts and the coupon isn’t applied, once I hit refresh, the coupon won’t show up.
I did some debugging and noticed that if I create an order via the “normal” way (not via the api), I can apply the coupon. If I create it via the API, I can’t apply coupons.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Apply coupon in payment form’ is closed to new replies.