Adicione ao carrinho com Ajax para WooCommerce


O botão de adicionar ao carrinho padrão do WooCommerce recarrega o site inteiro a cada vez que um produto é adicionado ao carrinho. Quanto mais etapas e tempo seu e-commerce leva para carregar, mais você reduz suas chances de vender.

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. Diminua o uso de banda
  2. Reduza a carga do servidor
  3. Acelere a experiência do usuário
  4. Aumente suas vendas!


16 de março de 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 de fevereiro de 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 de janeiro de 2021
Excellent stuff. Works well for both simple and variable products. Can also hook into the actions via the js events.
9 de outubro de 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 de outubro de 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.
Leia todas as 21 avaliações

Colaboradores e desenvolvedores

“Adicione ao carrinho com Ajax para WooCommerce” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.


“Adicione ao carrinho com Ajax para WooCommerce” foi traduzido para 4 localizações. Agradecemos aos tradutores por suas contribuições.

Traduzir “Adicione ao carrinho com Ajax para WooCommerce” para o seu idioma.

Interessado no desenvolvimento?

Navegue pelo código, dê uma olhada no repositório SVN ou assine o registro de desenvolvimento via RSS.

Registro de alterações


  • woocommerce compatibility


  • incluído script de adição ao carrinho em ajax do woocommerce
  • correção na adição ao carrinho com ajax de produtos variáveis do woocommerce


  • 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


  • desabilitada a validação de botão em produtos woocommerce


  • fixed ajax add to cart in variable products


  • fixed when ajax add to cart in archives off


  • atualização dos nomes de classes do Adicione ao carrinho com Ajax para WooCommerce


  • inclusão de scripts apenas nas páginas de produtos


  • lançamento inicial do Adicione ao carrinho com Ajax para WooCommerce