PremiumFeaturedSticky Add To Cart

Sticky Add to Cart

A premium, scroll-triggered sticky bar that lifts conversion.

#pdp#sticky#conversion#mobile-first#aov

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

  1. 01

    Create /sections/modblo-sticky-add-to-cart.liquid.

  2. 02

    Paste the code and save.

  3. 03

    Open product.json template and add the section.

  4. 04

    Optionally enable on every page via theme.liquid for cross-template visibility.

The code

This is the file you'll paste into your theme.

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

What you can customize

Every setting below shows up in the Shopify theme editor. Change them without touching code.

SettingTypeDefault

Product

product

Leave blank on PDPs to auto-bind.

Product,

CTA label

cta_label

TextAdd to cart

Show after scroll (px)

show_after

Slider600

Background

bg

Color picker#0b0b0c

Foreground

fg

Color picker#ffffff

Button color

accent

Color picker#6366f1

SEO and 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.
Sticky Add to Cart. Shopify section | modblo