Documentation

Turn on the sticky add to cart button

Show a buy bar that stays on screen while the customer scrolls the product page: turning it on, when it appears, its position and its content.

On a long product page, the buy button quickly scrolls off screen. The Sticky add to cart block then shows a bar with the price and a button at the bottom (or top) of the screen, so the customer can buy at any moment without scrolling back up.

On mobile, the sticky bar at the bottom of the screen with the price and the Add to cart button while the customer browses the page
On mobile, the sticky bar at the bottom of the screen with the price and the Add to cart button while the customer browses the page

Turn on the bar

The block is already in the Story Theme product page, but it ships hidden. You just need to show it.

  1. Open Online Store > Themes > Edit theme, template Products > Default product.
  2. In the Product page section, find the Sticky add to cart block, under the Group of the buy column. Its name is grayed out, with a crossed-out eye icon.
  3. Click the eye icon to show the block.
  4. Click Save.
Screenshot to take — Theme editor > Products > Default product > sidebar: "Product page" section expanded, "Sticky add to cart" block grayed out with the crossed-out eye icon visible on hover, cursor on the icon

Scroll the product page preview: the bar appears as soon as the main buy button leaves the screen. If you use other product templates, repeat this in each of them.

On desktop, the sticky bar at the bottom of the Lumyx demo store screen: photo, name, color and price on the left, Add to cart button on the right, while the customer reads the specifications
On desktop, the sticky bar at the bottom of the Lumyx demo store screen: photo, name, color and price on the left, Add to cart button on the right, while the customer reads the specifications

Set the content

Click the Sticky add to cart block to open its settings. In the Display group:

  • Show the image, Show title, Show the selected variant and Show compare-at price: checked by default.
  • Variant selector: Dropdown (default) or None. The dropdown in the bar changes the variant for the whole page.
  • Show quantity selector: unchecked by default.

In the Button group, the Button text accepts [price] (price of the selection) and [compare_price] (price before discount), for example "Add to cart · [price]". The Button style uses your theme's button styles.

Close-up of the Lumyx demo store sticky bar: the image, the title, the selected variant, the price and the compare-at price, then the button
Close-up of the Lumyx demo store sticky bar: the image, the title, the selected variant, the price and the compare-at price, then the button

Choose when and where it appears

  • Appears: Once the add to cart button is out of view (default), or As soon as the page scrolls.
  • Hide at the bottom of the page: checked by default, so the bar doesn't cover the footer.
  • Show on: Desktop and mobile, Desktop only or Mobile only.
  • Position: Bottom (default), Top or Floating (a rounded bar that doesn't touch the edges, with its own Alignment and Width).
  • Position on mobile: Bottom or Top.
  • Mobile layout: Compact keeps only the price and the button; Detailed also shows the image and the title.
On mobile, the Lumyx demo store sticky bar shows the image, the title, the variant and the price above a full-width button
On mobile, the Lumyx demo store sticky bar shows the image, the title, the variant and the price above a full-width button
On the Hopla demo store, a more discreet bar: just the price and the button, at the bottom of the screen
On the Hopla demo store, a more discreet bar: just the price and the button, at the bottom of the screen
Screenshot to take — Theme editor > Products > Default product > Product page > "Sticky add to cart" block selected (visible): settings panel open on the Behavior group (Appears, Hide at the bottom of the page, Show on) and the Position group (Position, Position on mobile, Mobile layout)

Polish the look

The Design group sets the bar's Color palette, the Frosted glass effect (slightly transparent, blurred background), Show a border, Shadow, the Corner radius (in the floating position) and Full width.

On the Sylys demo store, the sticky bar uses the brand's light palette: the price and a gray button, at the bottom of the product page on mobile
On the Sylys demo store, the sticky bar uses the brand's light palette: the price and a gray button, at the bottom of the product page on mobile

Frequently asked questions

The bar doesn't show up on my store

Check that the block is no longer hidden (eye icon), that you clicked Save, and that the product actually uses the template you edited. With the default Appears setting, you also need to scroll until the main button leaves the screen.

The bar hides the bottom of my page

Leave Hide at the bottom of the page checked, or switch the Position to Top.

Learn more