Floating Cart Advanced Options, Recommendations & Troubleshooting

Floating Cart
Updated Nov 8, 20263 min read

This guide covers grouping cart items, the coupon and summary options, related products in the drawer, and how to fix common problems. These settings are PRO, unless noted.

Group cart items

Grouping puts items under headings in the drawer, which helps when an order comes from several categories, brands or pickup places.

Group Cart Items switch in the WooCommerce floating cart settings
  1. On the Floating Cart tab, turn on Group Cart Items under Drawer Elements.
  2. Set Group Items By: Category (the default), Brand or Cart Item Meta.
  3. For Cart Item Meta, enter the Group Meta Key, such as pickup_location.
  4. Choose a Group Title Icon: No Icon, Tag (the default), Folder, Star or Location.
  5. Click Save Changes.

An item with no value goes under a fallback heading: “Uncategorized”, “No brand” or “Other”. If a product has several categories, the first one is used.

Coupon and summary

Coupon switches in the floating cart Drawer Elements
Summary and Shipping switches in the floating cart Drawer Elements
GoalTurn on
A tidy drawer, with the coupon box closed until neededCollapsible Coupon and Coupon Initially Collapsed
A short drawer, with totals closed until neededCollapsible Summary and Summary Initially Collapsed
Let shoppers choose delivery in the drawerShipping Options

Shipping Options appear only when the cart needs shipping and WooCommerce has rates for the shopper’s address. Tax Row appears only when there is tax to show. Shipping Row appears only when the cart needs shipping.

The drawer can suggest up to three products. This is always on in the free plugin, and in Pro you can turn off Related Products.

Suggestions appear only when the cart holds exactly one item. They are products WooCommerce finds related to it, and only simple products that can be bought and are in stock. So if you add a second item, or the product has no related simple products, the section goes away. You can change the words with Related Products Heading and Add to Cart Button under Drawer Text.

If something goes wrong

ProblemWhat to check
The button does not showEnable Sticky Cart is on, and Hide If Cart Empty is not hiding it. Your theme must also call wp_footer(), as nearly all do.
The icon is missingCart Button Icon is on. Then clear your cache.
The drawer does not openLook for script errors in your browser console. Turn off JavaScript delay in your speed plugin.
The count does not updateClear the cache, then follow the cache settings below.
Quantity or remove buttons do nothingA security plugin or firewall may be blocking admin-ajax.php.
The coupon box does not workFollow our coupon guide.
Shipping does not showShipping Options is on, the products need shipping, and a shipping method covers the address.
Variation choices are missingVariation Selector is on, and so is Variation Switcher in Cart & Checkout on the Features tab.
Custom details do not showCart Item Meta needs a rule, as our guide to cart item display explains.
The drawer sits behind your headerYour theme’s header is on a higher layer. Go to Appearance > Customize > Additional CSS and add .cart-drawer { z-index: 999999; }.
Problems only on a phoneTest with your real phone. Hide optional parts to make the drawer shorter.

Cache settings

Exclude Cart, Checkout and My Account pages from caching, and do not cache cart fragments or admin-ajax.php. Cart fragments are the small background update that refreshes the cart count. If you are unsure, ask your host or your cache plugin’s support. A cached page can show the wrong cart.

Final test

  1. Add a simple product and a variable product.
  2. Change quantity and remove an item.
  3. Apply and remove a coupon.
  4. Click Checkout and place a test order.
  5. Repeat on a phone, in a private window.