javascript - which woocommerce method can i use in ajax to validate my cart? -
i customizing woocommerce store. create custom modal , want validate cart modal ajax click on new button (custom button). use admin_url('admin-ajax.php')
. , have in javascript script:
var formdata = new formdata($("#last-step")[0]); formdata.append('action', 'checkout');
so need correct woocommerce method use in ajax trigger cart validation action (from cart checkout).
or have idea can do?
Comments
Post a Comment