dimanche 28 août 2022

How to put or embed a fully Ajax checkout form on WooCommerce single product page?

I’m using this code snippet to show WooCommerce checkout form on the single product page :

    add_filter('woocommerce_short_description','ts_add_text_short_descr');
function ts_add_text_short_descr($description){
  $text="[woocommerce_checkout]";
  return $description.$text;
}

It's working, But this form lacks the Ajax functionality. Like when you click the 'pass order' button, the form doesn't submit using AJAX but redirect to check out page

So, how can I enable the AJAX functionality?




Aucun commentaire:

Enregistrer un commentaire