Ajax add to cart for WooCommerce

Description

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.

Improvements

  1. Use less bandwidth
  2. Reduce server load
  3. Speed user experience
  4. Increase your sales!

Reviews

مارچ 16, 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, 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, 2021
Excellent stuff. Works well for both simple and variable products. Can also hook into the actions via the js events.
اکتوبر 9, 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, 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.
Read all 21 reviews

Contributors & Developers

“Ajax add to cart for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

“Ajax add to cart for WooCommerce” has been translated into 4 locales. Thank you to the translators for their contributions.

Translate “Ajax add to cart for WooCommerce” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.1.9

  • WordPress compatibility

1.1.8

  • fix js issue

1.1.7

  • fix php issue

1.1.6

  • woocommerce compatibility

1.1.5

  • woocommerce compatibility

1.1.4

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

1.1.3

  • woocommerce ajax add to cart i18n

1.1.2

  • woocommerce ajax add to cart register script split from enqueue

1.1.2

  • woocommerce ajax add to cart language i18n fix

1.1.1

  • woocommerce product addons fix

1.1.0

  • woocommerce ajax add to cart issues

1.0.6

  • woocommerce cart i18n compatibility

1.0.5

  • disabled button validation in woocommerce products

1.0.4

  • fixed ajax add to cart in variable products

1.0.3

  • fixed when ajax add to cart in archives off

1.0.2

  • class names woocommerce ajax add to cart updated

1.0.1

  • include script only in products pages

1.0.0

  • initial release of woocommerce ajax add to cart