Shopify sections
Sticky add to cart for Shopify: a bar that tracks the variant the shopper picked
A Shopify sticky add to cart is a slim buy bar on the product page. It appears once the theme's add to cart button has scrolled out of view, so the shopper can add the product without scrolling back up. Section Store's Sticky Add to Cart shows it as a bottom bar, floating pill or top bar. It follows the variant chosen in the theme's picker and by default hands the add to the theme's cart. If the theme has its own sticky bar, this one steps aside. Access is a one-time purchase of this section or the Enterprise plan.
- Proposed spot: a block in the main product section
- Layout breakpoints at 749 and 750 px
- Honours prefers-reduced-motion
Last checked:

When to use it
Add the bar when the buy button scrolls away and the theme offers no sticky bar
Use it when
- Description, reviews and tabs push the button off screenThe default trigger, "After scrolling past the add to cart button", shows the bar at the moment the theme's button leaves the viewport. While the footer is visible the bar hides, so the end of the page is never covered.
- Your theme ships without a sticky barDawn has no sticky add to cart, so the section has nothing to compete with. Keep "Hide when the theme has its own" switched on anyway: after a theme change, the bar steps aside for a built-in one without you touching it.
- The bar has to match the variant chosen above"Follow the theme's variant picker" reads the theme's product form and shows the selected variant with its price and compare-at saving. To let shoppers switch variant inside the bar itself, choose "Own variant dropdown in the bar" instead.
- On phones, a single button is enough"Phones: only a full-width button" is off by default. Switch it on and phones show just the button across the width, while desktop keeps the image and price you set under Content.
Skip it when
- The theme has a sticky bar built inImpact, Prestige and Horizon include one that you switch on in the theme editor. Run that bar and leave this section out, because two sticky bars on one product page is the setup to avoid.
- The add to cart button never leaves the screenOn a short product page the default trigger never fires, so the bar never appears. Switching to "After scrolling a set distance" would only repeat a button the shopper can already see. Let the theme's own button do the job.
- Chat bubble and cookie banner already sit at the bottom on phones"Lift on phones" raises the bar by at most 120 px, which may not clear both elements stacked together. Pick the Top bar layout, or turn on "Hide on phones" and use the bar on desktop only.
In detail
The bar watches the theme's button, then hands the add back to the theme
Two triggers decide when the bar shows. The default waits until the theme's add to cart button is out of view. "After scrolling a set distance" ignores the button and shows the bar after a fixed scroll between 200 and 1200 px, 600 by default. Layout sets the position: a full-width strip at the bottom, a floating pill, or a strip at the top.
"When the button is pressed" controls how the product reaches the cart. With the recommended default, "Use the theme's add to cart", the theme's own add to cart runs, so its drawer and cart behaviour stay as they are. "Add directly with the section" sends the request to the storefront cart from the bar. "After adding to cart" is a conditional setting with three outcomes: the theme's cart drawer if one exists, a confirmation, or the cart page.
Variant sync is where the section depends on your theme. The bar reads the theme's product form to follow the selected variant; it does not replace that form. The theme's add to cart button is found automatically as long as "Add to cart button selector (advanced)" stays empty. "Variant input selector (advanced)" is a separate text field for a CSS selector, for themes where the bar does not pick up the variant change. The product itself comes from the app block's product handle, which is why the section belongs on the product page.
On phones the bar sits above the home indicator and never takes focus. It stays below the theme's menus and cart drawer, so an open menu or drawer covers the bar, not the other way round.
Builder settings
Every builder setting of Sticky Add to Cart
Start with three rows: Layout, because bottom, pill and top each compete with something different on your product page; Variant, which has to fit how your theme picks variants; and Lift on phones if a chat bubble sits at the bottom edge. All rows below live in the Section Store builder; in the theme editor the app block only offers the section picker, padding top and bottom, max width, and hide on mobile or desktop.
Layout7
- Layout
- Choice: Bottom bar, Floating pill, Top bar
- DefaultBottom bar
- Show the barThe bar always hides while the footer is on screen, so it never covers the end of the page.
- Choice: After scrolling past the add to cart button, After scrolling a set distance
- DefaultAfter scrolling past the add to cart button
- Scroll distanceConditional
- Slider, 200–1200 px
- Default600 px
- Phones: only a full-width button
- On / off
- DefaultOff
- Hide on phones
- On / off
- DefaultOff
- Hide on desktop
- On / off
- DefaultOff
- Content width
- Slider, 720–1600 px
- Default1200 px
Content7
- Show product image
- On / off
- DefaultOn
- Show price
- On / off
- DefaultOn
- Show compare-at price and saving
- On / off
- DefaultOn
- Variant
- Choice: Follow the theme's variant picker, Own variant dropdown in the bar, No variant shown
- DefaultFollow the theme's variant picker
- Show quantity selector
- On / off
- DefaultOff
- Button LabelDefault labels are translated automatically into the shopper's language.
- Text
- DefaultAdd to cart
- Sold out label
- Text
- DefaultSold out
Behaviour6
- When the button is pressed
- Choice: Use the theme's add to cart (recommended), Add directly with the section
- DefaultUse the theme's add to cart (recommended)
- After adding to cartConditional
- Choice: Open the cart drawer (if the theme has one), Show a confirmation, Go to the cart page
- DefaultOpen the cart drawer (if the theme has one)
- Hide when the theme has its own
- On / off
- DefaultOn
- Lift on phones
- Slider, 0–120 px
- Default0 px
- Variant input selector (advanced)
- Text
- DefaultEmpty
- Add to cart button selector (advanced)Leave empty to detect the theme's add to cart button automatically.
- Text
- DefaultEmpty
Design7
- Background Color
- Colour
- Default#ffffff
- Text Color
- Colour
- Default#1c1b19
- Button Color
- Colour
- Default#1c1b19
- Button Text Color
- Colour
- Default#ffffff
- Sale Color
- Colour
- Default#b4532a
- Button Corner Radius
- Slider, 0–30 px
- Default8 px
- Show shadow
- On / off
- DefaultOn
27 settings in 4 groups. These are settings in the Section Store builder, not theme editor settings: read from the app's section configuration, as of 2 Dec 2026. "Conditional" settings appear only once a related setting turns them on.
Two ways
Code the bar into the product template or place a ready block
Both routes end with a bar on the product page. They differ in who keeps variant, price and stock state correct when your theme changes its product form.
Way 1
Hand-coded fixed bar in the product template
Untested outline, not a finished listing, so no code here. Syncing the variant is theme-specific work and the hard part.
- Add markup for a fixed bar next to the main product form.
- Watch the form's add to cart button with an IntersectionObserver and reveal the bar when it leaves the viewport.
- Let the bar's button click the theme's button or submit the same form, so the theme's cart logic still runs.
- Hook into your theme's variant change event to refresh variant, price and sold-out state; each theme names and fires it differently.
- Hide the bar while the footer is in view and pad it for the phone safe area.
- Retest after each theme update, since form markup and events can change.
Choose this if: You already maintain custom theme code, know which variant event your theme fires, and want no app block on the product page. If your theme has a sticky bar of its own, switching that on beats both routes.
Way 2
Sticky Add to Cart block from Section Store
No theme files touched. Bought once as a single section or used under Enterprise. Runs only on Online Store 2.0 themes, since it is an app block.
- Install Section Store and open Sticky Add to Cart in the builder.
- Choose layout, variant mode and phone behaviour, check the desktop, tablet and mobile preview, then save.
- Click Install in theme; the theme editor opens with the Section Store app block on the product template.
- Check that Sticky Add to Cart is selected in the block's section picker, as described in the Section Store documentation, and save the theme.
- If needed, limit it by date, country, language, logged-in state, customer tag or device.
Choose this if: Your Online Store 2.0 theme has no sticky bar and you would rather not own JavaScript that breaks when the theme changes its variant event.
FAQ
What merchants ask before adding a sticky buy bar
Check your theme's product page settings in the theme editor first: Impact, Prestige and Horizon have a sticky bar you can switch on, Dawn has none. Without such an option, you need custom JavaScript in the theme. Code edits made in theme files have to be added again when you move to a newer version of the theme.
With the default "Use the theme's add to cart", the theme's own add to cart runs and its drawer opens as usual. The bar sits underneath the drawer, so the drawer is never hidden behind it. If the bar's button does nothing on your theme, enter the CSS selector of the theme's button in the advanced add to cart button field.
Default output is 48.8 KB, made up of 33 KB JavaScript and 12.9 KB CSS. What that means for load time depends on everything else on the page, so run a speed test of the product page before and after placing it.
Yes. Switch on "Hide on desktop" in the builder. The app block in the theme editor has its own hide on desktop toggle as well, and the section's visibility rules can also filter by device.
Sticky Add to Cart is in Section Store.
Set it up in the app builder and place it through the Section Store app block. No theme code.
Sources
Sources
- Section Store app: builder configuration and generated code of Sticky Add to Cart · as of 2026-12-02
- Section Store on the Shopify App Store · as of 2026-12-02
- Shopify developer documentation: Sections