Save Address on checkout using AJAX
-
Hi guys!
Long story short, this is what I want:
– Multi-steps checkout, where user first save/update his address. Before that, users check his new address and proceed to checkout.
I going very ok on my changes but I found a problem I don’t know how to solve.
When user fill the address form, he going to click on “Next” button. When he clicks, I want to validate the form an save it on WP.
I want pretty much the “edit-address” endpoint functionality, but using AJAX.I check class-wc-ajax.php to see how can I save the address form using ajax, but there is nothing that could help me.
I don’t want to rewrite all the login of validating and saving this, since WC already do it.How can I do what I need? Any tips/help?
Thank you guys!
Ps.: Using WP 4.6.1 and WC 2.6.4
- The topic ‘Save Address on checkout using AJAX’ is closed to new replies.