Sticky Add to Cart Product Forms

On this page
Documentation pages

Supported product pages

Use the bar on the main classic WooCommerce single-product page for a simple or variable product. The theme must retain the normal product form, add-to-cart button and WooCommerce integration. No shortcode needs to be inserted to enable the bar.

The bar belongs to the page’s main product. Another product embedded on the same page does not become the target for its variation changes. Do not use this as a promise of support for multiple copies of the same product form, custom quick views or arbitrary embedded forms.

Select supported types under WooCommerce → Sticky Cart → Compatibility and behaviour → Show on product types. Unticking every type and saving hides the bar on every product; it does not restore the default selection. The list may contain other registered WooCommerce types, but selecting a type does not make its form compatible. Keep unsupported types unticked unless your developer has verified the integration.

Scroll behaviour

Position of the original purchase control Sticky bar
Below the viewport, before the customer reaches it Hidden
Visible in the viewport Hidden
Scrolled above the viewport Shown for an eligible product
Back in view after scrolling upwards Hidden again

Allow the page’s images and other content to finish loading before judging the trigger. A short product page may not have enough content below the control to scroll past it. The plugin does not show the bar simply because the control is covered by a different overlay.

Simple products and quantities

The sticky button clicks the original WooCommerce add-to-cart button. It uses the original form’s current quantity and submitted fields. Change quantity in that form before scrolling away; there is no separate quantity field in the bar.

WooCommerce and your existing product-form extensions remain responsible for validation, stock restrictions, basket handling and any redirect or AJAX behaviour. The plugin does not bypass required fields or guarantee that a custom extension supports a proxied button click. If a product needs personalisation, add-ons or other extra inputs, test that complete journey on staging.

Variable products

Product state What customers should expect
No valid variation has been resolved Select options returns the customer to the original option controls. It does not choose options or add to the basket.
Some required choices are still missing The customer completes those choices in the original form.
A valid variation is selected The sticky button follows the original button’s text. The bar uses the variation’s price and image when WooCommerce supplies them.
Defaults are preselected Once WooCommerce resolves those defaults, the sticky button follows the original purchase button rather than continuing to ask for options.
A combination is unavailable The original form remains authoritative. If no valid variation is resolved, the sticky action returns to the options. If WooCommerce marks the resolved variation’s button disabled, the bar reflects that state.
The customer resets the selection The bar restores the original product price and image and returns to Select options when no valid variation remains.

Variation prices only replace the displayed price when WooCommerce provides non-empty variation price HTML. A variation image replaces the thumbnail when an image source is supplied. The parent product title stays the same. Button text follows the original button’s text, without copying its decorative icons.

An entirely ineligible or out-of-stock product has no active sticky bar. For backorders or restricted quantities, rely on the original form’s purchase state and WooCommerce validation; the bar does not create its own stock rules.

Leave space for a fixed header

If Select options scrolls the option controls underneath your theme’s sticky header:

  1. Open WooCommerce → Sticky Cart.
  2. Find Compatibility and behaviour → Fixed header offset.
  3. Enter the header’s height in pixels, for example 80 for an 80 px header.
  4. Select Save Changes.
  5. Open a variable product with no resolved selection, scroll down and use Select options again.

Expected result: that amount of space is left above the scroll destination. The plugin aims for the visible variation table, then the variation purchase area or form if necessary. The setting defaults to 0, accepts non-negative whole pixels and has no configured maximum. Use 0 when there is no fixed header.

This setting changes the scroll destination, not the sticky bar’s height, bottom gap, trigger threshold or position relative to chat and cookie banners. If the header height changes by screen size, one fixed value may not fit every layout; ask your developer to adapt the integration.

Keyboard and accessibility

The bar uses a native button with a visible keyboard focus outline. Its hidden state is also marked as hidden from assistive technology. When variation selection is required, Select options remains an available action; a disabled purchase state can be announced separately.

The original form remains the place to choose options and quantities. Scrolling to options does not automatically move keyboard focus to the first selector, so include that journey in your keyboard testing. Reduced-motion preferences remove the bar’s CSS transitions; the scroll-to-options action still requests smooth scrolling. Do not assume every animated interaction is removed.

Choose readable colours, check focus visibility and confirm that other fixed elements do not cover the action. These features support accessibility testing but do not establish whole-site accessibility compliance.

Need more help?

Visit Support