Sticky Add to Cart
A premium, scroll-triggered sticky bar that lifts conversion.
Live preview
See it in action.
Fully interactive, drag, click, scroll inside the frame, toggle to mobile.
About this section
Mobile-first sticky add-to-cart bar with variant select, scroll-trigger threshold, sold-out state and safe-area padding for notched iPhones. No app, no JS framework, pure Liquid + a few lines of vanilla.
Install in 90 seconds
- 01
Create /sections/modblo-sticky-add-to-cart.liquid.
- 02
Paste the code and save.
- 03
Open product.json template and add the section.
- 04
Optionally enable on every page via theme.liquid for cross-template visibility.
The Liquid
Unlock the section code
Sticky Add to Cart is a premium section. Get the full Liquid + scoped CSS paste-ready.
One-time purchase · Lifetime updates · You own the code
Theme editor settings
| Setting | Type | Default |
|---|---|---|
Product product Leave blank on PDPs to auto-bind. | product | , |
CTA label cta_label | text | Add to cart |
Show after scroll (px) show_after | range | 600 |
Background bg | color | #0b0b0c |
Foreground fg | color | #ffffff |
Button color accent | color | #6366f1 |
SEO & accessibility notes
- The bar is rendered in real DOM (not injected) so it stays crawlable and accessible.
- Uses real <form> + variant <select>, not custom widgets, works without JS for fallback add-to-cart.
- env(safe-area-inset-bottom) keeps the bar above the iOS home indicator.
Related
