WooCommerce Guides

What a WooCommerce Sticky Add to Cart Should Do

Choose and test a WooCommerce sticky purchase bar, with practical checks for scrolling, variations, quantities, mobile layouts and the original product form.

Illustration comparing a WooCommerce product page before and after a sticky add-to-cart bar appears

A sticky Add to Cart bar keeps the purchase action within reach while someone reads a long product page. It can be useful when dimensions, delivery information or reviews take the shopper well beyond the original purchase controls.

The useful question is what happens when they press it. Does it preserve their quantity? Does it handle an unfinished variation choice? Can they still reach the product form on a phone?

This guide explains what to look for and uses Bloom Stack Sticky Cart 2.1.2 for the configuration examples. Start by checking that your original WooCommerce purchase form works correctly.

Show the bar at the right point in the journey

Imagine a product with a large image at the top, its purchase form beneath it and detailed information further down. A bar appearing before the shopper reaches the form is a different experience from one that appears after they have passed it.

Bloom’s trigger follows that distinction:

Original purchase control Sticky bar
Further down the page, below the viewport Hidden.
Visible on screen Hidden.
Scrolled above the viewport Shown for an eligible product.
Back in view after scrolling upwards Hidden again.

Let the page finish loading before testing this. A short product page may not provide enough space to scroll past its purchase control. A cookie notice covering the control also does not count as the control having scrolled above the viewport.

Keep the original product form in charge

Bloom’s sticky button clicks the original WooCommerce button. It uses the quantity and fields in that form; it does not introduce a separate quantity selector or variation form in the bar.

For example, set a simple product’s quantity to two, scroll down and press the sticky action. The basket should receive the same quantity that the original action would submit. WooCommerce and the store’s other extensions remain responsible for stock rules, required inputs, validation and any redirect or AJAX behaviour.

If your product has an engraving field, custom swatches or other add-ons, test those inputs too. Using the original form does not establish compatibility with every extension that modifies it.

Handle variation choices clearly

A shirt with colour and size options is a useful test case. Try more than the one combination you expect most people to buy.

Test What to check
No options selected Select options returns to the original controls. It does not choose a variation or add an incomplete choice.
Only colour selected The shopper still completes the required size choice in the original form.
A valid variation selected The sticky action follows the original purchase button’s text. Price and image can update when WooCommerce supplies those values.
Defaults selected on page load Once WooCommerce resolves them, the sticky action follows the purchase button.
Selection reset The bar restores the original product price and image and returns to Select options if no valid variation remains.
Unavailable combination The original form’s availability and validation remain authoritative. The bar must not provide a way around a blocked purchase.

An unchanged price or image is not automatically an error. A variation may share its parent’s image, or WooCommerce may not supply replacement price HTML. Compare the bar with the original product form before changing settings. The product forms guide explains these states in detail.

Configure a useful amount of information

Open WooCommerce → Sticky Cart. Under Display, choose Full width, Contained or Lifted container. Full width reaches the viewport edges; the other choices provide a narrower bar, with Lifted container also leaving a bottom gap.

  1. Choose a display style and set Maximum width to suit the page. The default is 1200 px; the accepted range is 320–1920 px.
  2. Choose readable text and button colours. If using Use a Glass background, check the result against the page beneath it; Glass applies its own text and button treatment.
  3. Under Element visibility, choose whether the image, title and price appear at desktop, tablet and mobile widths.
  4. Use Live preview to compare the layouts, then select Save Changes.
  5. Check the real product page. The preview uses sample content and does not test the purchase form or scroll trigger.

The mobile product image is hidden by default, while title and price remain visible. That is a useful starting point when space is tight. The separate Full-width Add to basket button on mobile option puts the button on its own row below 768 px.

Mobile settings follow viewport width, not the device’s name. A narrow desktop browser can therefore use them. See the appearance and settings reference for every control.

Leave room for headers and other fixed controls

If Select options returns to a form hidden behind a fixed header, set Compatibility and behaviour → Fixed header offset. An 80 px header, for example, is a starting point for an 80 px offset. Save and retest at the widths your customers use.

This offset changes the scroll destination. It does not move the bottom bar away from a chat widget, cookie notice or another sticky control. Those elements need their own positioning adjustments. Avoid showing two competing purchase bars.

Check the template as well as the product type

The supported baseline is a classic single-product simple or variable form with WooCommerce’s expected integration. Under Show on product types, make sure the relevant type is enabled. Unticking every type hides the bar everywhere; selecting a specialised type does not make its form compatible.

The single-product Add to Cart + Options block is unsupported. Compatibility declarations for HPOS and block cart/checkout concern different parts of WooCommerce and do not extend that product-form support.

Use a staging copy to check custom builders, swatches and form extensions. If the normal button fails, resolve that first; a sticky bar should not conceal an existing purchase problem.

Run a final customer check

  • Test a simple product’s quantity using both the original and sticky buttons.
  • Test the variation states above, then inspect the actual basket contents.
  • Scroll down and back up while checking for duplicate or overlapping controls.
  • Use a keyboard to reach the button and return to the options. Bloom scrolls to the form but does not automatically focus its first selector.
  • Check readable colours and visible focus. Reduced-motion preferences remove the bar’s CSS transitions, but its return-to-options action still requests smooth scrolling.
  • Repeat while signed out after any relevant cache or optimisation change.

For help with a missing bar or unexpected behaviour, use the troubleshooting guide. Explore Sticky Add to Cart’s features, or continue with the broader product-page optimisation checklist.