Ajax add to cart for WooCommerce


The default add to cart button of WooCommerce reloads the entire site each time a product is added to the cart. The more steps and time your e-commerce load, the more you reduce the chances of selling.

Ajax add to cart for WooCommerce allows users to include single products or variable products in the cart without the need to reload the entire site each time.


  1. Utilisez moins de bande passante
  2. Réduisez la charge du serveur
  3. Accélérez l’expérience utilisateur
  4. Augmentez vos ventes !


16 mars 2021
This plugin is clean and works great. One thing I would suggest in the code. there should be a check for whether the product is external otherwise it tries to add it to cart but nothing ever happens. In the add_product_js function add this code to accomplish: global $post; if (function_exists('wc_get_product')): $product = wc_get_product($post->ID); if (function_exists('is_product') && is_product() && !$product->is_type('external')) { wp_enqueue_script('woo-ajax-add-to-cart'); } endif; good luck and thanks.
8 février 2021
has had a problem with variables for years that they don't bother to fix. If you have a variable marked as "any" it will not read it and it will not add anything to the cart.
19 janvier 2021
Excellent stuff. Works well for both simple and variable products. Can also hook into the actions via the js events.
9 octobre 2020
My original review was: The plugin is lightweight, practical, has no additional settings and works as it should. But there is a lack of functionality that is essential for what he proposes: giving feedback to the user while he puts the product in the cart. Depending on the performance of the site, it may take a fraction of a second between clicking the purchase button and the product appearing in the cart. During that time, there is no feedback. There could be an animation or a warning, but this lack of response can cause the user to click the button several times without success. I was initially very happy with the plugin, but I was forced to look for an alternative. But as I didn't find alternatives so light and effective, I started to study if there was any way to insert the animation manually. And the good news is that the plugin adds loading and added classes to the button. This was enough for me to get around the problem and include a custom animation. I expected not to have to deal with custom codes, but at least the plugin was useful for that. Good job!
6 octobre 2020
I'm using the Flatsome theme, running Woo 4.5.2 and WP 5.4.2. This plugin worked for me upon install with no issues. It's a MUCH better UX for customers having the cart Ajax. This also fixes the "confirm form resubmission" issue with WooCommerce when hitting the back button from the cart page after adding a product to the cart from a product detail page.
Lire les 21 avis

Contributeurs & développeurs

« Ajax add to cart for WooCommerce » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.


“Ajax add to cart for WooCommerce” a été traduit dans 4 locales. Remerciez l’équipe de traduction pour ses contributions.

Traduisez « Ajax add to cart for WooCommerce » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.



  • woocommerce compatibility


  • woocommerce ajax add to cart script included
  • woocommerce ajax add to cart variable product fixed


  • woocommerce ajax add to cart i18n


  • woocommerce ajax add to cart register script split from enqueue


  • woocommerce ajax add to cart language i18n fix


  • woocommerce product addons fix


  • woocommerce ajax add to cart issues


  • woocommerce cart i18n compatibility


  • disabled button validation in woocommerce products


  • fixed ajax add to cart in variable products


  • fixed when ajax add to cart in archives off


  • class names woocommerce ajax add to cart updated


  • include script only in products pages


  • initial release of woocommerce ajax add to cart