_wpnonce on woocommerce checkout form
-
I am trying simulate Place Order actions from my theme function. I am calling an ajax request from my custom function https://localhost/wp_test/checkout/?wc-ajax=checkout and pass required parameters to it. I am updating my cart by hoking another action to ‘woocommerce_before_checkout_process’.
I am getting ‘We were unable to process your order, please try again.’. This is because I am not able to pass ‘_wpnonce’ field to this request. If I comment out this check in process_checkout function. I am able to simulate this action correctly.
Please, let me know how can I simulate this action without hacking core files.
Thanks and regards
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘_wpnonce on woocommerce checkout form’ is closed to new replies.