Sticky add to bag
An Add to bag bar that appears after shoppers scroll past the button.
An Add to bag bar that appears after shoppers scroll past the button.
- Where it can go: Product pages only
- Area: Product page
- File:
sections/sticky-add-to-cart.liquid
Section settings#
Product pages only. Needs a Buy buttons block in the Product information section.
| Setting | Type | Default | What it does |
|---|---|---|---|
| Show on | Choice | Phones and desktop | Shows once Add to bag scrolls out of view. Options: Phones, Phones and desktop. |
| Show product image | On/off | On | |
| Show after scrolling | Slider 0 to 90 % | 0 % | How far past Add to bag a visitor scrolls before it shows, as a share of the page. 0% shows it as soon as Add to bag is out of view. |
| Color scheme | Color scheme | Scheme 1 |
Developer notes#
Product templates only. Shows once the real Add to bag button has been scrolled past; it overlays the page, so nothing moves. It submits the product form on the page (assets/product.js finds it) and mirrors that form's button: label, price, Sold out and loading. The button is the same snippet as the real one (snippets/add-to-bag-button.liquid).