— ACCESSIBILITY — NOV 23, 2026 —

Sticky Add to Cart on Shopify Mobile, Done Properly

On a phone, the Add to cart button on a product page scrolls out of view almost as soon as the shopper starts reading. By the time they have looked at the photos, read the description and checked the reviews, the button is several screens up. A sticky add to cart bar brings it back. Done well, it is one of the simplest mobile improvements you can make. Done badly, it covers content, shifts the layout and annoys people. This guide covers both.

Facts in this article come from the source code of Shopify's Horizon theme, Google's Cumulative Layout Shift guidance on web.dev, and the W3C's WCAG 2.2 Focus Not Obscured criterion, all checked on 19 November 2026.

What is a sticky add to cart bar?

It is a slim bar fixed to the bottom of the screen on product pages, usually showing a small product image, the name, the selected variant, the price and an Add to cart button. It appears once the shopper has scrolled past the main buy button, so the action is always one tap away without scrolling back up.

Shopify's own Horizon theme ships with one. In Horizon's product information section there is a setting to enable the sticky add to cart, and it is switched on by default. If you are on Dawn or an older theme, it needs either a theme setting from your theme developer, an app, or custom code.

When does a sticky add to cart bar help?

It helps most when the product page is long and the decision happens below the buy button. That is common on Indian D2C stores, where shoppers scroll for reviews, delivery dates, COD availability, ingredients or size guides before deciding.

It tends to help when:

  • Your product pages are long, with reviews, FAQs and rich content below the fold.
  • Most of your traffic is mobile, which is the case for most Indian D2C stores.
  • Products are simple to buy, with one or two variant choices.
  • You sell repeat or low-consideration products where the shopper already knows what they want.

It helps less when the page is short and the main button is never far away, or when the product needs several choices (size, colour, personalisation) that do not fit in a bar. In that case the bar should scroll the shopper back to the options rather than add an unconfigured product.

Hand holding a smartphone against a plain grey background
On a phone, the buy button scrolls away within a second. A sticky bar brings it back.
Photo: NeONBRAND via Wikimedia Commons, CC0

When should the sticky bar appear and disappear?

Horizon's code is a good reference because it is Shopify's own implementation. It uses the browser's IntersectionObserver to watch the main buy buttons and the footer, and it behaves like this:

  • The bar stays hidden while the main buy buttons are on screen.
  • It appears only once the main buttons have scrolled above the top of the screen, not when the shopper has not reached them yet.
  • It hides again when the main buttons come back into view.
  • It hides when the footer approaches, so it does not cover footer links.
  • It stays hidden while a chat window is active, so it does not fight the chat widget for the same space.
When a sticky add to cart bar should appear and hide on a Shopify product page
Horizon's built-in bar follows this pattern: show after the main button scrolls away, hide near the footer.

That last point matters on Indian stores, where WhatsApp chat buttons and support widgets often sit in the bottom corner. A sticky bar and a floating chat button competing for the same space is a common mobile layout problem. Decide which one owns the bottom of the screen on product pages, and move the other.

How do you avoid layout shift with a sticky bar?

Layout shift is when visible content jumps while the page is in use. Google measures it as Cumulative Layout Shift, and web.dev says a good score is 0.1 or less, with anything above 0.25 counted as poor. A badly built sticky bar can push content around every time it appears.

The rules that keep it clean:

  1. Position it as fixed, over the page. The bar should sit on top of the content, not be inserted into the page flow where it pushes things down.
  2. Animate with transform, not position. web.dev recommends using transform: translate() to move elements rather than changing top, bottom, left or right, because transforms do not trigger layout shifts.
  3. Reserve space at the bottom of the page. Add bottom padding equal to the bar's height, so the last content on the page is not hidden behind it.
  4. Respect reduced motion. If the shopper's phone is set to reduce motion, show and hide the bar without the slide.
Sticky bar benchmarks: CLS 0.1 good, 0.25 poor, 24 pixel minimum target
A sticky bar should never move the page, and its button must be easy to tap.

If your product page already feels slow when tapping buttons, a sticky bar with heavy scripts will make it worse. Our guide to fixing slow interactions on Shopify covers how to check that.

What accessibility problems do sticky bars cause?

The main one is covering what has keyboard focus. WCAG 2.2 success criterion 2.4.11, Focus Not Obscured (Minimum), says that when an element receives keyboard focus, it must not be entirely hidden by author-created content. The W3C's own explanation names sticky footers as a typical cause. A shopper using a keyboard or switch device who tabs to a link near the bottom of the screen can lose it behind your bar.

Practical fixes:

  • Add scroll-padding-bottom to the page equal to the bar height, so focused elements scroll into view above it.
  • Give the bar a clear accessible label. Horizon labels its bar as the sticky add to cart region.
  • Make the button at least 24 by 24 CSS pixels, the WCAG 2.2 AA minimum, and in practice closer to 44 pixels high for thumbs.
  • Keep the price and variant in the bar in sync with the main form. A bar that says "M" while the main form says "L" is worse than no bar.

Our article on accessibility on Shopify stores covers the wider checklist.

Screen readers need care too. The sticky bar usually repeats the product name, price and button that already exist higher on the page. If both are announced in full, a screen reader user hears everything twice. Give the sticky bar a clear label, such as "Quick add bar", keep its button text identical to the main one, and make sure it does not trap focus. Test it once with TalkBack on Android, since that is what most Indian shoppers using a screen reader will have.

Finally, check the bar on the smallest phone you support. A product title, a variant name, a price with a struck-through MRP and a button rarely fit in one row on a narrow screen. Decide in advance what gets dropped first. Usually the title goes, because the shopper already knows which product they are on, and the price and button stay. If the product has variants, the selected size or colour should stay visible too, so nobody adds the wrong one by mistake.

Should the sticky bar add to cart directly or scroll up?

It depends on the product:

  • Single variant products: add directly, and show clear feedback such as a cart drawer opening or a short "Added" state.
  • Products with one choice already made: add directly with the selected variant shown in the bar, so the shopper can see what they are adding.
  • Products needing choices: if no size has been selected, the bar button should scroll to the options or open a small option picker, never add a default size silently.
  • Sold-out variants: the bar should say sold out, or offer back-in-stock alerts, matching the main button.

How do you test whether the sticky bar works?

Test it on real phones first: a small Android, a large Android and an iPhone, with the browser toolbar shown and hidden. Check that it never covers the WhatsApp button, cookie banner or chat, and that the last line of the page is readable.

Then measure. Compare add to cart rate on mobile product pages before and after, ideally with a proper A/B test rather than a before-and-after comparison that mixes in sale periods. Avoid launching it the week of Black Friday on 27 November, when traffic patterns change too much to read the result. For mobile checkout itself, our guide to mobile checkout optimisation picks up where this leaves off.

A sticky button helps only when the rest of the product page works. Our post on what a Shopify CRO audit usually finds covers the wider mobile checks.

Want a sticky add to cart that does not break your page? Email hello@exactwhy.com with the subject "Sticky add to cart" and a link to one product page. We will check your current mobile product page, how it behaves with your chat and banners, and whether a sticky bar is likely to help, free. If you want us to build or fix one, we quote after the review, and ongoing CRO support is available on a monthly retainer. You can also reach us through our contact page. We reply within 4 hours.

Other Blogs

CASH ON DELIVERY
Should You Use a COD Order Form App on Shopify?
Dec 04, 2026
Parth Sojitra
CONTRACTS
Response and Fix Times to Agree With a Shopify Agency
Dec 04, 2026
Parth Sojitra
DAWN THEME
Shopify Horizon Theme, Should You Switch From Dawn?
Dec 04, 2026
Parth Sojitra
CCPA
Dark Patterns Rules in India and Your Shopify Store
Dec 03, 2026
Parth Sojitra
DPDP
Shopify Email Popups and First Order Discounts Done Right
Dec 03, 2026
Parth Sojitra
CONVERSION RATE OPTIMISATION
What a Shopify CRO Audit Should Include and What Drives Cost
Dec 03, 2026
Parth Sojitra
CLS
Shopify Speed Score vs PageSpeed, Which Number Matters?
Dec 02, 2026
Parth Sojitra
ECOMMERCE PLATFORM
Shopify vs Hostinger Website Builder for an Indian Brand
Dec 02, 2026
Parth Sojitra
INDIAN D2C
How to Transfer Shopify Store Ownership the Right Way
Dec 02, 2026
Parth Sojitra
COD
Shopify Referral Program for Indian D2C Brands That Works
Dec 01, 2026
Parth Sojitra
CASH ON DELIVERY
Shopify COD Fee in India and the Drip Pricing Rules
Dec 01, 2026
Parth Sojitra
CORE WEB VITALS
Shopify Speed Optimization Apps, Do They Actually Work?
Dec 01, 2026
Parth Sojitra
ACCESS TOKENS
Shopify Expiring Access Tokens for Custom Apps Explained
Nov 30, 2026
Parth Sojitra
INDIAN D2C
Shopify Cost After 3 Months in India, What You Really Pay
Nov 30, 2026
Parth Sojitra
INDIAN D2C
Are Shopify SEO Apps Worth Paying For in 2026?
Nov 30, 2026
Parth Sojitra
COLOUR SWATCHES
Shopify Colour Swatches and Variant Images, Set Up Properly
Nov 29, 2026
Parth Sojitra
D2C INDIA
Sell Live Plants Online in India on Shopify Without Losses
Nov 29, 2026
Parth Sojitra
D2C INDIA
Start an Eyewear Brand on Shopify in India the Right Way
Nov 29, 2026
Parth Sojitra
CUSTOMER SUPPORT
Product FAQs on Shopify That Cut Tickets and Help Buyers
Nov 28, 2026
Parth Sojitra
COD
Shopify Shipping Rates and Free Shipping Threshold in India
Nov 28, 2026
Parth Sojitra
AOV
Gift With Purchase on Shopify Without the Usual Headaches
Nov 28, 2026
Parth Sojitra
BFCM 2026
Shopify BFCM Live 2026, What the Global Numbers Tell You
Nov 27, 2026
Parth Sojitra
CLOSE SHOPIFY STORE
Pause or Close Your Shopify Store? What Happens to Your Data
Nov 27, 2026
Parth Sojitra
BLACK FRIDAY
Shopify Post-Sale Review, What to Check After Black Friday
Nov 27, 2026
Parth Sojitra
INDIAN D2C
Should You Put Your Shopify Store on a Password Page?
Nov 27, 2026
Parth Sojitra
FULFILMENT
Shopify Tracking Not Showing to Customers? How to Fix It
Nov 26, 2026
Parth Sojitra
COD
Stop Fake COD Orders and Spam Signups on Shopify
Nov 26, 2026
Parth Sojitra
CHECKOUT ERRORS
Is Shopify Down or Is It Your Store? What to Check First
Nov 26, 2026
Parth Sojitra
CHANNEL MAPPING
Shopify Channel Mapping for Google and Meta Product Data
Nov 25, 2026
Parth Sojitra
APP AUDIT
Shopify Year-End Checklist for Indian Stores in 2026
Nov 25, 2026
Parth Sojitra
AI SHOPPERS
Shopify SimGym AI Shoppers, What They Can Test
Nov 25, 2026
Parth Sojitra
CART PERMALINKS
Shopify Checkout Links for Instagram and WhatsApp Sales
Nov 24, 2026
Parth Sojitra
CHANGELOG
How to Use Shopify's New Partner Directory to Pick an Agency
Nov 24, 2026
Parth Sojitra
AD BUDGET
Shopify Campaign Autopilot Explained for Indian Brands
Nov 24, 2026
Parth Sojitra
APPAREL
Shopify Size Guides That Cut Apparel Size Returns
Nov 23, 2026
Parth Sojitra
CORE WEB VITALS
What Your Shopify Homepage Should Show in the First Screen
Nov 23, 2026
Parth Sojitra
CART DRAWER
Shopify Cart Drawer vs Cart Page, Which Should You Use
Nov 22, 2026
Parth Sojitra
CONVERSION TRACKING
Google Tag Manager on Shopify with Custom Pixels
Nov 22, 2026
Parth Sojitra
GOOGLE ADS
Google Ads for a Shopify Store in India, Set Up Right
Nov 22, 2026
Parth Sojitra
BLOGGING
Does Your Shopify Store Need a Blog to Get Sales?
Nov 21, 2026
Parth Sojitra
GOOGLE MERCHANT CENTER
Shopify Product Schema for Google Rich Results Explained
Nov 21, 2026
Parth Sojitra
EMERGENCY SUPPORT
How to Contact Shopify Support From India, and When Not To
Nov 21, 2026
Parth Sojitra
BRAND LAUNCH
H.I.M by Ranveer Singh, Inside the Brand's Shopify Store
Nov 20, 2026
Parth Sojitra
DISCONTINUED PRODUCTS
Sold Out Products on Shopify and What to Do for SEO
Nov 20, 2026
Parth Sojitra
COLLECTION PAGE
Shopify Collection Page Design That Helps People Buy
Nov 20, 2026
Parth Sojitra
CUSTOMER ACCOUNTS
Shopify Store Credit for Returns and Refunds in India
Nov 19, 2026
Parth Sojitra
INDIAN D2C
Who Changed My Shopify Store? Use the New Activity Log
Nov 18, 2026
Parth Sojitra
FOUNDERS
The First 90 Days After Launching Your Shopify Store
Nov 16, 2026
Parth Sojitra
DMARC
Shopify Emails Going to Spam? Fix Sender Authentication
Nov 16, 2026
Parth Sojitra