Skip to content
GPLWP Guides

How to add a fly cart in WooCommerce

WooCommerce Time About 20 minutes 7 steps Updated 13 Sep 2026

WOOCOMMERCE
The short answer

WooCommerce does not include a full fly-cart overlay by default. You can build one with custom JavaScript, styling and cart-fragment updates, but a plugin is the practical route for most stores because it handles the panel, cart updates and controls without sending shoppers to the cart page.

The route
  1. 01Choose the cart experience
  2. 02Check the built-in option
  3. 03Build the manual version
  4. 04Install a fly-cart plugin
  5. 05Configure and test Ajax behaviour
  6. 06Fix cache and compatibility issues
  7. 07Use the fast way

What you need

  • A working WooCommerce store
  • Administrator access to WordPress
  • A backup or staging site for testing
  • Your cart and checkout pages assigned in WooCommerce

Choose the cart experience

Decide whether you need a fixed cart icon, a panel that opens after adding an item, or both. Also decide whether customers should be able to change quantities, remove products, apply coupons and go directly to checkout.

Keep the panel short enough to use on mobile. A fly cart should support the normal cart page, not replace it, because some products, shipping rules and payment options still need the full WooCommerce screens.

Check the built-in option

WooCommerce includes a Mini-Cart block that can show the cart contents, item count and totals. In a block theme, add it through the Site Editor; in other setups, use the available WooCommerce or theme cart widget.

This is the no-plugin route for a compact mini-cart, but it is not a complete fly-cart overlay in every theme. If you need a slide-out panel that opens automatically after an Ajax add-to-cart action, continue with a dedicated solution.

Build the manual version

A true custom fly cart needs front-end markup for the panel, CSS for its position and responsive layout, JavaScript to open and close it, and WooCommerce cart updates so the item list and totals stay current without a full page reload.

That work normally involves the WooCommerce cart-fragments system or another Ajax integration, plus handling variable products, failed requests, quantity changes and empty-cart states. It is a reasonable route for a developer maintaining a custom theme, but it is not a quick code snippet and can break when the theme, cache layer or checkout extensions change. WooCommerce notes that cart fragments update mini-cart content through Ajax and can add unnecessary requests when used without a cart widget.

Install a fly-cart plugin

For most stores, install a plugin that specifically provides a WooCommerce fly cart or side cart. In WordPress, go to Plugins, choose Add New or upload the plugin ZIP, install it and activate it.

Open the plugin's settings and enable the floating cart, automatic opening after add to cart, product thumbnails, quantity controls and the links to the cart and checkout. If your theme already has a mini-cart, disable one of the duplicate cart displays before testing.

Configure and test Ajax behaviour

Add a simple product from a shop page, then test a variable product, a product with required options and a product added from a page builder layout. Confirm that the panel opens, the item count and totals change, quantities can be updated, products can be removed and the empty state works.

Repeat the test on a phone and in a private browser window. If a product page reloads instead of opening the panel, the theme or add-to-cart control may not be using Ajax. Some fly-cart plugins require a separate Ajax add-to-cart component for single-product pages.

Fix cache and compatibility issues

If the fly cart shows an old cart, an empty cart or another customer's items, check page, object and browser caching before changing the plugin. Exclude Cart, Checkout and My Account from page caching, and follow your host's guidance for WooCommerce session data and cart cookies.

Clear the site's caches and retest with minification, script combination and optimisation temporarily disabled. If the problem remains, switch briefly to a default WooCommerce-compatible theme and disable other cart, Ajax, checkout and page-builder extensions one at a time. Conflicting cart-fragment handling and cache rules are common causes of a fly cart that does not refresh correctly.

Use the fast way

Use WPC Fly Cart for WooCommerce when you want the quickest setup. Install and activate it, then go to WPClever > Fly Cart to choose the cart position, icon, display style, cart details and automatic opening behaviour.

It provides an Ajax mini-cart overlay for viewing and managing items without a page reload. Choose it when you want a faster shopping flow without maintaining custom cart JavaScript, but still test it with your theme, page builder, caching setup and any Ajax add-to-cart extension before publishing.

The fast route

Let WPC Fly Cart for WooCommerce do it

Ajax mini-cart overlay for viewing and managing items without page reloads; choose it for a faster, uninterrupted shopping flow.

Get WPC Fly Cart for WooCommerce

Sources

  1. developer.woocommerce.com /docs/block-development/reference/block-references/?utm_sour…
  2. developer.woocommerce.com /2023/06/16/best-practices-for-the-use-of-the-cart-fragments…
  3. wordpress.org /plugins/woo-fly-cart/?utm_source=openai
  4. developer.woocommerce.com /docs/best-practices/performance/configuring-caching-plugins…
  5. wordpress.org /support/topic/woocommerce-mini-cart-caching-problem/?utm_so…

Questions

Does WooCommerce have a fly cart built in?
No, WooCommerce has a Mini-Cart block and related cart display options, but a full floating or slide-out fly cart is not a standard feature in every installation. The built-in mini-cart may be enough for a small cart preview; automatic opening, advanced controls and a persistent floating icon usually require a compatible theme, custom development or a dedicated plugin.
Can I add a fly cart without a plugin?
Yes, but you need to develop the overlay and connect it to WooCommerce's cart update process. That means writing and maintaining the panel markup, responsive CSS, JavaScript, Ajax requests, error handling and cart refresh behaviour. For a custom theme with developer support this can be suitable; for most store owners, a plugin is less risky and faster to maintain.
Why does my fly cart show an empty or outdated cart?
An empty or outdated fly cart is usually caused by caching, conflicting cart-fragment scripts, or an add-to-cart control that does not complete its Ajax request. Exclude Cart, Checkout and My Account from caching, clear all cache layers, then test with script optimisation and other cart plugins disabled. Also check whether the product page uses a compatible Ajax add-to-cart method.
Will a fly cart work with variable products?
A fly cart can work with variable products, but the customer must select all required options before the product is added. Test variations, quantity rules, subscriptions, bundles and other extensions separately because their add-to-cart requests may not behave like a simple product's request. If a variation cannot be added correctly, check the theme or page builder's product form before blaming the fly-cart panel.
Should the fly cart replace the WooCommerce cart page?
No, keep the standard WooCommerce cart page as a fallback. The fly cart is best for quick reviews, quantity changes and removing items, while the full cart page may be needed for shipping calculations, product options, notices and extensions that do not fit inside a small overlay. Always check that the panel's View cart and Checkout buttons point to the correct WooCommerce pages.