Skip to content
Sign in Get started
Menu
Docs menu

Sticky add to cart bar

Applies to Theme 1.0.3 Updated 8 November 2026 View as Markdown

On a product page, once the Add to cart button has scrolled up out of view, a bar slides in along the bottom of the screen with a small photo of the product, its price, the quantity and its own Add to cart button, so shoppers can buy without scrolling back. On a computer it also shows the product's name. It comes with the theme and needs no setup.

A product page scrolled down past its Add to cart button, with the bar along the bottom: the product's photo, its name, the chosen size, the price, the quantity and Add to cart

Turn it off or on. The bar is a block at the end of the Single Product template, and that block is its setting: delete it to turn the bar off (Turn it off), add the Sticky add to cart bar pattern again to turn it back on (Turn it back on). In the Site Editor it stands after the reviews with a caption over it, "Sticky add to cart bar: on a product page it shows along the bottom of the screen once Add to cart has scrolled away.", and its block settings say how to turn it off and back on. This works with or without LanternWP Companion.

What it shows

  • The chosen options. A small photo of the chosen size or color, and the chosen options under the product's name, such as "M" or "32 GB · 1 TB". On a phone the bar leaves out the name, since the page's heading is just above, and shows the options under the price. The photo is the one the product's gallery shows for the chosen options; on a product page without the gallery, the bar keeps the product's photo.
  • The price of the chosen options. When a shopper picks another size or color, the bar's price changes with the price beside the options. On a sale, the regular price shows crossed out beside it.
  • The price on the button. When the main button shows the price ("Add to cart · $2,190", its With price style, see Product page layouts), so does the bar's, and the bar leaves out its own price; on a narrow phone it then leaves out the quantity before the photo, so the photo and the chosen options stay.
  • The shipping time. With LanternWP Companion and shipping times on, the time of the options chosen, such as "Ships in 7–9 weeks", shows under the options.
  • The same quantity. The bar's quantity is the one beside the main button: change either and the other follows. Products you sell one at a time (Sold individually in the product's Inventory tab) have no quantity in the bar either.
  • The same button. The bar's button adds to the cart exactly as the main one does, with the chosen options and quantity, and then reads as the main one does, such as "2 in cart", with a check mark.
  • Choose options. When a product has options and one is not chosen yet, the bar names it, such as "Choose size", and its button reads Choose options. The button scrolls back to that option instead of adding.

On a narrow phone, when the photo, the price, the quantity and the button do not fit in one row, the bar leaves out the photo first, then the quantity, which stays beside the main button. The bar hides again when the main button comes back into view. It never covers your footer: the page keeps room for it at the bottom.

Where it does not show

The bar is only for products a shopper can add in one step: simple products and products with options. Grouped and external products, and products that are out of stock, keep only the main button.

Turn it off

The bar is a pattern at the end of your product template, after the reviews: the product's title, its price and an Add to cart button.

  1. Go to Appearance → Editor → Templates and open Single Product.
  2. Scroll to the end of the template, past the reviews, and select the bar under its caption. Document Overview at the top left names it Sticky add to cart bar, the last block of the Group between Header and Footer.
  3. In the block's toolbar, open Options and choose Delete.
  4. Select Save.

The Single Product template in the Site Editor, with Document Overview open on the left and Sticky add to cart bar selected as the last block of the Group, between Reviews and Footer

Turn it back on

Add the bar again from the block inserter. The rest of the template stays as it is.

  1. Go to Appearance → Editor → Templates and open Single Product.
  2. Select Block Inserter (the plus at the top left) and open the Patterns tab.
  3. Search for "sticky", or open the Product page category, and select Sticky add to cart bar.
  4. Select Save.

The block inserter open on its Patterns tab, with "sticky" in the search and Sticky add to cart bar as the result

With no block selected, the bar goes to the end of the page's content, after the reviews, where the theme puts it. It shows at the bottom of the screen wherever it sits in the template. The inserter offers it only while you edit a template, not in posts or pages. In Theme 0.3.1 and earlier it is not in the inserter yet: update the theme first. Other sections of the product page come back the same way: see Bring back a removed section.

Do not use Reset on the template to bring the bar back. It returns the whole template to the theme's: every other change you made to it is gone, and after a demo import that set its own product page, such as Kilowatt's buy panel, the page goes back to the theme's gallery layout.