sandywp / plugins / woocommerce-ajax-cart

Ajax Cart for WooCommerce

Side Cart, Free Shipping Bar & Quantity Buttons

4.4 out of 5 stars. 4.4 39 reviews

A side cart that slides in when a product is added, a free shipping bar, and -/+ quantity buttons that update the cart totals with AJAX.

Launch a sandbox with this plugin → No signup.
Ready in seconds.

v1.6.0 4,000+ installs WP 5.0+ PHP 7.2+

your-sandbox.sandywp.com/wp-admin
Ajax Cart for WooCommerce – Side Cart, Free Shipping Bar & Quantity Buttons running inside a SandyWP sandbox

What you get inside

5 screens
  • The classic cart page: a click on "+" or "-" updates the totals with AJAX, without clicking "Update cart" — with the free shipping progress bar.

  • The side cart opens when a product is added: a coupon form, the discount and the total after it, and the free shipping progress bar.

  • The side cart as a popup, in your accent colour, with the floating cart button and its item count — opened here from the theme's own header cart.

  • The free shipping progress bar on WooCommerce's Cart block.

  • The side cart settings: drawer or popup, coupon form, accent colour, the floating button's icon and corner, and the texts.

About this plugin

Ajax Cart for WooCommerce makes buying smoother in two ways:

  • A side cart: a cart drawer that slides in from the side — or a popup — the moment a product is added, with a floating cart button, a coupon form and a free shipping progress bar. It works on classic and block themes alike, on every page but the cart and checkout, and the theme’s own header cart can open it too.
  • On the classic cart page (the [woocommerce_cart] shortcode most stores and classic themes use), totals are recalculated with AJAX as soon as a quantity changes — no “Update cart” click — with -/+ buttons around the quantity.

On the newer Cart block (the default for stores created since WooCommerce 8.3), WooCommerce already updates quantities by itself; there the plugin adds a confirmation before an item is removed, the free shipping bar, and the side cart works the same.

No code or theme changes are needed: a new install starts with the side cart and the free shipping bar on, and everything else is a switch in WooCommerce > Ajax Cart for WooCommerce.

Need more? The PRO adds a rewards progress bar, product suggestions and -/+ quantities inside the side cart, AJAX Add to cart and quantities kept in sync on the shop and product pages — $35 one-time (no subscription), with 1 year of updates and support and a 7-day money-back guarantee. See the PRO features below.

You can try and play with this plugin demonstration clicking here

Free version features:

  • Side cart: a cart drawer that slides in when a product is added — or a popup in the middle of the screen — with a floating cart button and item count; the theme’s header cart icon opens it too
  • Coupon form inside the side cart: apply or remove a coupon without leaving the page, the totals and WooCommerce’s messages right there
  • Your own look for the side cart: accent colour, the floating button’s icon and corner, and its texts (title, checkout button, empty cart)
  • Free shipping progress bar (“Spend $12.00 more for free shipping”) in the side cart, Mini-Cart, classic Cart and Cart block — the amount read from your free shipping method, or your own
  • Automatically reload and recalculate the classic Cart using AJAX when quantity changes
  • Show -/+ buttons around item quantity on cart page — stepping by the quantity’s own step, and left out when your theme draws its own
  • Show item quantity as select (a dropdown) instead of a number field
  • Ask the shopper to confirm when an item quantity is set to zero — and, on the Cart block, before an item is removed

Premium version features:

  • Rewards progress bar: your milestones on the way to bigger orders (“$50: free gift”, “$100: 10% off”) in the side cart, Mini-Cart, classic Cart and Cart block — it shows the progress, the rewards are your own coupons or rules (view demo)
  • Product suggestions in the side cart: the cart items’ cross-sells (or upsells), each with an AJAX “Add” button (view demo)
  • Change quantities with -/+ buttons inside the side cart (view demo)
  • AJAX Add to cart on product pages: the product goes in without a page reload (view demo)
  • Quantity -/+ buttons on the Shop, Mini-Cart and product pages, kept in sync with the cart (view demo)
  • Live price on product pages: the price follows the quantity chosen (quantity × unit price) (view demo)
  • Undo a removed item on the Cart block (view demo)
  • Minimum, maximum and step for every product quantity, on the classic and the block cart — checked again when the cart is updated
  • Faster AJAX update of the classic Cart page
  • Lock the quantity fields so they change only with the -/+ buttons

Get the PRO version here.

Looking for more checkout and product page tools — a “Buy now” button, a shorter checkout, quantities on the checkout? Try our Better Usability for WooCommerce plugin.

Questions

Does it work with the Cart block?

Yes. On WooCommerce’s Cart block (the default cart of stores created since WooCommerce 8.3) the block already updates the totals by itself; the plugin adds a confirmation before an item is removed and the free shipping bar there, and the side cart works on every page with either cart. The -/+ buttons and AJAX totals are for the classic cart page (the [woocommerce_cart] shortcode).

My theme already has -/+ buttons. Will I get two pairs?

No. When the theme’s quantity field already has its own plus and minus buttons, the plugin leaves its own out and keeps updating the cart when the theme’s buttons change the quantity. You can also turn the plugin’s buttons off in WooCommerce > Ajax Cart for WooCommerce > General.

How do I open the side cart from my header cart icon?

It opens by itself: with the side cart on, a click on any link to the cart page — the theme’s header cart, its icon or count — opens the side cart instead (turn that off in Settings > Side cart). For your own button or menu item, give it the CSS class wac-open-side-cart.

Where is the free shipping amount taken from?

From the “Free shipping” method of the shopper’s shipping zone (its minimum order amount), or from the amount you type in Settings > Free shipping bar. With no amount the bar stays hidden.

Can I hide the floating cart button?

Yes: turn “Show a floating cart button” off, or have it hidden only while the cart is empty, in Settings > Side cart.

Can a developer change what the plugin does?

Yes, with WordPress hooks (filters and actions) and JavaScript events, in a child theme’s functions.php or a small plugin:

  • wac_side_cart_enabled (filter, bool $enabled): the side cart and its floating button on or off on the current page.
  • wac_load_assets (filter, bool $load): whether the plugin’s cart script and styles load on the current page (by default the Cart page, a page with the classic cart, and pages with the side cart).
  • wac_side_cart_before_items / wac_side_cart_after_items (actions): print your own HTML in the side cart, above or below its items.
  • wac_free_shipping_threshold (filter, float $threshold): the order amount that gives free shipping, as the bars show it — for example converted to the shopper’s currency; 0 hides the bar.
  • wac_progress_bar_html (filter, string $html): the free shipping bar printed in the side cart, Mini-Cart and classic Cart.
  • wac_free_shipping_block_enabled (filter, bool $enabled): whether the Cart block gets the free shipping bar.
  • wac_quantity_div (filter: $html, $cart_item_key, $cart_item, $original_html): a cart item’s quantity field with its -/+ buttons.
  • wac_button_link (filter: $html, $label, $identifier — sub or inc): the HTML of a – or + button.
  • wac_template_file (filter: $located, $template_name, $args): the quantity dropdown template (“Show item quantity as select”).
  • wac_frontend_vars (filter, array $vars): the settings and texts the cart script reads.
  • mh_wac_settings (filter, array $settings): the settings, with their defaults.
  • wac_before_cart_update (JavaScript event on document.body, with the quantity field): just before a changed quantity updates the classic cart.

4.4

39 reviews

  • 5 ★ 32
  • 4 ★ 0
  • 3 ★ 1
  • 2 ★ 1
  • 1 ★ 5

Ratings come from WordPress.org. SandyWP does not collect its own reviews.

sandywp / also on the shelf

Try another plugin

Spin up a real WordPress site in seconds.

Test plugins, build a demo, hand a client a link — then squash it and start again. No local setup, no Docker.