Imagine a customer browsing your store and finding a perfect product. They add it to their cart—only to be met with a full-page reload, which can slow down the experience and create unnecessary friction.
As a result, they get frustrated, leave, and never return, causing you to lose sales.
This small issue can have a big impact in a world where speed matters.
The solution? WooCommerce Ajax add to cart!
By enabling Ajax add to cart in your WooCommerce store, you can make shopping seamless, improve user experience, and keep customers moving toward checkout.
In this article, we’ll show you three different methods to enable Ajax add to cart functionality in your WooCommerce store.
Table of Contents
A WooCommerce Ajax add-to-cart is a feature that allows customers to add products to their shopping cart without triggering a webpage reload.
Instead of refreshing the entire page every time a product is added or its quantity is modified, Ajax (Asynchronous JavaScript and XML) dynamically updates it in the background.
How does it work?
A shopper is on the product page and clicks on the “Add to cart” button:
Hitting “Add to Cart” would reload the entire page, and the product would get added to the cart, which can be time-consuming and frustrating.
When a shopper clicks “Add to Cart”, WooCommerce sends a request to the server via Ajax. Then, the cart updates instantly without reloading or redirecting shoppers to the cart page, ensuring a smooth experience.
The cart icon on the header updates with the added item, and a success message pops up.
If your WooCommerce store still uses the default add-to-cart method, you could lose sales without realizing it.
Here’s why you should enable the Ajax add-to-cart functionality:
If you want to reduce cart abandonment, increase sales, and improve the user experience, you should enable the Ajax add-to-cart feature in your WooCommerce store.
Here’s how you can enable the Ajax add to cart functionality with WooCommerce native options.
Navigate to WooCommerce ⇨ Settings ⇨ Products ⇨ General.
Under the Add to cart behavior section, check the box next to ‘Enable AJAX add to cart buttons on archives’.
Scroll down the page and hit the ‘Save changes’ button.
Make sure to head to the shop or category page in your store and add a product to your cart.
The Ajax implementation will kick in.
Though the native Ajax feature is functional, it has several limitations that can impact the shopping experience in your store.
To fix these issues, many WooCommerce store owners prefer using WordPress plugins or custom codes to implement Ajax add to cart in their stores.
Adding products to the cart should be a seamless experience for shoppers. And that’s where WooCommerce Ajax add to cart plugins come in!
These cart plugins allow customers to add items to their cart without refreshing the page, providing a smooth and interactive shopping experience.
Out of hundreds of plugins that we tested, let’s explore the top 3 WooCommerce Ajax add to cart plugins, their features, and why they stand out.
FunnelKit Cart is an advanced WooCommerce side cart solution that instantly updates the cart (simple, variable, or subscription products) with Ajax.
It lets you offer in-cart product upsells and set up smart rewards that help improve your store’s average order value (AOV).
Features of FunnelKit Cart:
Pricing: FunnelKit Cart is available in the free (lite) and premium versions. Its Ajax option, customizations, direct checkout, etc., are available in the free version.
To unlock advanced features such as in-cart product recommendations and smart rewards, upgrade to the premium version.
It comes as the added functionality inside FunnelKit Funnel Builder, allowing you to set up optimized sales funnels and high-converting checkout pages.
This WooCommerce plugin allows users to include single or variable products in the cart without having to reload the site each time.
Features of Ajax Add to Cart for WooCommerce:
It’s a simple plugin with limited customization options, meaning you cannot make it on-brand. Plus, you cannot offer upsells or set up rewards inside the cart.
Furthermore, it doesn’t provide an interactive sliding cart or upsell popup.
Pricing: This Ajax Add to Cart for WooCommerce plugin is available for free in the WordPress repository.
This add to cart plugin allows shoppers to add items to their carts immediately without reloading the site to view changes.
Features of WPC Ajax Add to Cart for WooCommerce:
Unlike solutions like FunnelKit Cart, this plugin doesn’t include in-cart recommendations. The cart behavior and mini cart appearance are fixed without deep customization options.
Pricing: The WPC Ajax Add to Cart for WooCommerce plugin is available for free.
After evaluating the top options, FunnelKit Cart stands out as the best WooCommerce Ajax add to cart plugin for store owners who want a feature-rich, conversion-optimized solution.
FunnelKit Cart is designed with conversion rate optimization (CRO) in mind. It’s not just about adding products without page reloads—it’s about increasing average order value and reducing cart abandonment.
With all the features mentioned above, it has been widely trusted by over 20,000 active WooCommerce stores.
If you're serious about improving conversions and increasing revenue, this is the best choice for your WooCommerce store.
If you’re looking for a quick and hassle-free way to enable Ajax add to cart feature in WooCommerce, using a plugin is the best approach.
We’ll use FunnelKit Cart to implement Ajax. It doesn’t require any coding and provides additional customization options to enhance your cart experience.
Make sure to install and activate FunnelKit Cart on your WordPress website.
Navigate to FunnelKit ⇨ Cart and turn on the ‘Enable cart’ toggle.
Clicking on ‘Save’ will enable the WooCommerce sliding cart in your store.
Configure the cart options:
You can further configure the coupon field, cart summary, checkout section, and more on your side cart the way you want.
Once done, hit the ‘Save’ button to lock your changes.
Customize your dynamic WooCommerce shopping cart and icon from the ‘Style’ tab.
You can set the cart preview width on desktop and mobile, text color, button color, upsell box, animation speed, icon style, size, etc.
Save the changes when done.
Go to the shop page of your website. Now, as soon as you add a product to the cart, FunnelKit Cart slides out and that item is added without any page reload.
Even if you increase or decrease the quantity, the Ajax support in FunnelKit Cart works like a charm.
FunnelKit Cart’s Ajax implementation works on single product and archive pages.
Plus, it supports all kinds of products, such as simple, variable, grouped, subscription, and more.
This is how you can effortlessly enable the WooCommerce Ajax add-to-cart feature with FunnelKit Cart.
While plugins provide a quick and easy solution for enabling WooCommerce Ajax add to cart, some store owners prefer custom coding for full customization and control.
Follow the step-by-step process to set up Ajax add to cart implementation in WooCommerce with code snippets.
WooCommerce has built-in Ajax add to cart support on archives, but for single products, enable it manually with this code.
Add this to your functions.php file or a WPCode snippet plugin:
Make sure to create a function that handles the Ajax request when an item is added to the cart using this code (add it to functions.php file):
To ensure the cart updates dynamically, add the following code to refresh the cart fragments:
To ensure the Ajax support is working on archives with these snippets, use the following code:
Well done! This is how you can set up WooCommerce Ajax add to cart programmatically using custom code snippets.
Here are some limitations and potential drawbacks of using this method:
In this section, we’ve answered some frequently asked questions related to Ajax add to cart functionality in WooCommerce:
1. How can I customize the Ajax add to cart button?
You can customize the text, color, size, and behavior of the Ajax add-to-cart button using WordPress appearance options.
You can even customize your buttons using CSS or custom JavaScript for advanced modifications.
FunnelKit Cart lets you customize your cart style and icon the way you want.
2. Does Ajax add to cart work on mobile devices?
Yes, Ajax functionality makes mobile shopping more seamless by enabling shoppers to add products to their cart without navigating away from the page.
To set up Ajax implementation on mobile devices, you can use FunnelKit Cart which seamlessly integrates with WooCommerce add to cart functionality along with smart customization options.
3. How to disable WooCommerce Ajax add to cart functionality?
You can disable the Ajax add to cart feature by simply unchecking the option if you use WooCommerce’s default functionality.
However, if you use FunnelKit Cart, you can just turn off the Ajax add to cart toggle with one click.
4. What to do if my Ajax add to cart stops working on my website?
If the Ajax add to cart is not working, you can try:
Enabling WooCommerce Ajax add to cart is crucial for improving user experience, reducing cart abandonment, and streamlining the shopping process.
Whether you implement it through custom coding or a dedicated plugin, Ajax ensures seamless product additions without any page reloads.
For the best experience, using a feature-rich plugin like FunnelKit Cart can provide advanced functionalities, including a dynamic side cart, upsell recommendations, and mobile-friendly design—all optimized for speed and performance.
By integrating Ajax add to cart into your WooCommerce store, you create a fast, frictionless, and conversion-optimized shopping experience that keeps customers coming back for more.
Editorial Team
March 19, 2025Ever wondered why some physical product stores easily turn visitors into customers while others struggle? Your product’s solid, and your marketing’s sharp—but conversions stay low. Why? Because typical website pages...
Editorial Team
March 18, 2025Let’s say a shopper adds a product, excited to buy… then, nothing. They got distracted, second-guess their decision, or struggle to find the cart. And like that, another sale goes...
Editorial Team
March 14, 2025Does your WooCommerce store offer enough payment options? If not, you could be losing up to 13% of sales. [According to Baymard]. WooCommerce’s default payment options don’t always meet customer...
Editorial Team
March 19, 2025Ever wondered why some physical product stores easily turn visitors into customers while others struggle? Your product’s solid, and your marketing’s sharp—but conversions stay low. Why? Because typical website pages...
Editorial Team
March 18, 2025Let’s say a shopper adds a product, excited to buy… then, nothing. They got distracted, second-guess their decision, or struggle to find the cart. And like that, another sale goes...
Editorial Team
March 14, 2025Does your WooCommerce store offer enough payment options? If not, you could be losing up to 13% of sales. [According to Baymard]. WooCommerce’s default payment options don’t always meet customer...
Leave a Reply
You must be logged in to post a comment.