Lifetime prices rise on 19 October →
Phox Elements
WOOCOMMERCE Sticky add to basket bar for Breakdance

Keep the add to basket button in reach as shoppers scroll

Phox Sticky Add To Cart shows a bar at the bottom of the screen once a shopper scrolls past your product's buy button. It holds the product image, name, price, quantity and an add to basket button, so shoppers can buy without scrolling back up.

One-click add for simple products Appears after the buy button Full or compact style
Live demo

Scroll past the product to see the bar

The product below is a real product from our demo shop. Scroll down past its button and the sticky bar slides up from the bottom of the screen. The add to basket button in the bar really adds the item to your basket.

Cat Pouches
Cat Food

Cat Pouches

Original price was: £14.50.Current price is: £12.99.

40 packs of Whiskas finest cat food.

View productThis stands in for the product's own add to basket button. Scroll past it and the sticky bar slides up from the bottom of the screen.

Full style, dark bar

Image, title, price, quantity and button on a dark background. Try the quantity buttons.

Compact style, variable product

Price and button only. Products with options show a button that takes shoppers to the choices instead.

How it works

Three steps to a sticky buy bar

Add it once to your single product template and every product gets the bar.

1

Add it to your product template

Drop Phox Sticky Add To Cart anywhere in your single product template. It picks up the current product.

2

Choose the style

Pick the full bar or the compact bar, and whether it shows on desktop, mobile or both.

3

Style and publish

Match the colours to your shop. The bar appears once shoppers scroll past the add to basket form.

Features

Everything a buy bar needs

A small bar that helps shoppers buy from anywhere on a long product page.

One-click add to basket

Simple products are added straight from the bar without leaving the page, and the basket count updates.

Options products

Variable, grouped and external products show a button that scrolls back to the product form, or opens the product page.

Shows at the right time

The bar appears once the page's own add to basket form has scrolled out of view, and hides again when it comes back.

Custom trigger

Point it at any element with a CSS selector, or use a scroll distance instead.

Full or compact

Full shows the image, name, price, quantity and button. Compact shows the price and button only.

Desktop, mobile or both

Show the bar everywhere, or only on desktop or only on mobile.

Quantity picker

Plus and minus buttons let shoppers choose how many to add.

Sale prices

Prices come from WooCommerce, so sale prices keep their strikethrough.

Full styling

Bar colours, top border, shadow, padding, image size and radius, price, button and quantity styles, and all button text.

Use cases

Where it works best

Any product page where the buy button can scroll out of sight.

01

Long product pages

Pages with big galleries, specs and reviews, where the buy button is soon out of view.

02

Mobile shoppers

Keep a buy button under the thumb on small screens.

03

Everyday products

Repeat buys like food or supplies, where shoppers already know what they want.

04

Sale items

Keep the sale price and the button in view as shoppers read.

05

Landing pages for one product

Use a custom trigger to show the bar after the hero section.

06

Products with options

Guide shoppers back to the size or colour choices before they buy.

Settings reference

Every control, explained

This is the full list of settings in the Breakdance editor, with their default values.

ControlWhat it doesDefault
Content
StyleFull (image, title, price, button) or compact (price and button).Full
Show OnDesktop and mobile, desktop only or mobile only.Desktop & Mobile
Show ImageShow the product image in the full style.On
Show PriceShow the price.On
Show QuantityShow the quantity picker for simple products.On
Trigger SelectorOptional CSS selector. The bar shows once this element has scrolled past. Leave empty to use the product's add to basket form.—
Scroll Offset FallbackScroll distance in pixels used when no trigger element is found.400
Preview In BuilderShow the bar in place while you design it.On
Add To Cart TextText on the add button.Add to basket
Select Options TextText for products with options.Select options
Out Of Stock TextText when the product is out of stock.Out of stock
Design
BarBackground colour, top border colour, disable shadow, z-index and padding.White, #e5e5e5, 9990
Product InfoTitle typography, image size and image radius.44px, 8px
PriceColour and typography.—
ButtonBackground, text colour, hover colours, border radius, padding and typography.#111111, white, 8px
QuantityBorder colour and text colour.#dddddd
Tips & FAQ

Good to know

Where do I put it?

In your single product template. It reads the current product, so one bar works for every product.

What happens with variable products?

The bar shows a Select options button. It scrolls up to the product form so shoppers can choose, or opens the product page if there is no form on the page.

When does the bar appear?

Once the product's own add to basket form has scrolled above the screen. You can set your own trigger element, and a scroll distance is used if no trigger is found.

Does it update the mini basket?

Yes. After an add it swaps in WooCommerce's basket fragments and fires the normal added to cart event, so mini baskets and counters update.

Can I show it on mobile only?

Yes. Set Show On to Mobile only, which is a common choice for long product pages.

Add Sticky Add To Cart to your next page

Sticky Add To Cart is included with Phox Elements, along with 150+ other premium elements for Breakdance.