Z O B A E R

Loading

Guide Shopify guide

Shopify Sticky Add to Cart Bar for Dawn and Horizon

Turn on Horizon's built-in sticky add to cart bar, or add a tested one to Dawn without an app. Steps, mobile checks and common fixes.
Zobaer Hossain
Zobaer H.Shopify Select Partner · 10+ years
Shopify sticky add to cart bar for Dawn and Horizon, no-app guide by Zobaer H.

A Shopify sticky add to cart bar keeps the buy button on screen while shoppers scroll through photos, reviews and long descriptions. On a phone, the main button is gone after one swipe. A sticky add to cart bar brings it back at the bottom of the screen, so nobody has to scroll up to buy.

You may already have one. Shopify’s free Horizon theme has one built in, and it is switched on by default. Dawn has no such setting, so below I share a small, tested code block that adds one without an app. I have added sticky bars to many client stores, and this guide covers what I check every time.

Here is what you will learn:

  • Which free theme has a built-in sticky bar, and which doesn’t
  • How to turn the Horizon bar on or off, and why it sometimes stays hidden
  • A free Dawn sticky add to cart bar you can paste in about 10 minutes
  • When a Shopify sticky add to cart helps sales, and how to measure it in your own store
  • The mistakes I see most often, and how to fix them

What is a sticky add to cart bar?

A sticky add to cart bar is a small bar fixed to the bottom of the screen that holds an Add to cart button. It appears once the shopper scrolls past the main button on a product page. It hides again when that button is back in view.

A good Shopify sticky add to cart bar does exactly what the main button does. It adds the variant the shopper picked, in the quantity they chose, and opens the same cart drawer. A poor bar adds the wrong size, or it covers the chat button. That difference matters more than the design.

Does your theme have a Shopify sticky add to cart setting?

Horizon has one and Dawn doesn’t. I checked the source code of both free themes in November 2026 (Horizon 4.5.0 and Dawn 16.2.0). Here is how they compare.

ThemeBuilt-in barSetting nameDefault
HorizonYesSticky add to cart barOn
DawnNoNone (needs code or an app)Not available
Dawn’s “Sticky content”No, a different featureSticky contentOn, desktop only

That last row confuses many Dawn owners. Dawn’s Product information section has a setting called Sticky content. It only keeps the product details column in place while the photos scroll, on screens 750 px and wider. It doesn’t add a sticky button, and it does nothing on phones.

Not sure which theme you use? Go to Online Store, then Themes, and look at the name of your current theme. My Dawn vs Horizon comparison explains the other differences.

How to turn on the sticky add to cart bar in Horizon

In Horizon, the Shopify sticky add to cart bar is a checkbox in the product page section. If you never changed it, it is already on.

Step by step in the theme editor

  1. From your Shopify admin, go to Online Store, then Themes, and click Edit theme next to Horizon.
  2. In the page menu at the top, choose Products, then Default product.
  3. In the left sidebar, click the Product information section.
  4. In the settings panel, under Layout, check Sticky add to cart bar.
  5. Click Save.
Shopify sticky add to cart bar setting in the Horizon theme editor, Product information section
Horizon: the Sticky add to cart bar checkbox sits in the Product information section, and it is on by default.

Do you use more than one product template? Repeat this on each one. The setting belongs to the section, so every template keeps its own copy. To remove the sticky add to cart bar, follow the same steps and uncheck the box.

How the Horizon bar behaves

  • It waits for the Buy buttons. The bar slides in only after the Buy buttons block has scrolled off the top of the screen. It hides again when the buttons come back, and when the shopper reaches the footer.
  • It shows the product. You see the image, title, chosen variant and price next to the button. It updates when the shopper picks another variant.
  • It keeps the quantity. Tapping the bar presses the main button for you. If the shopper chose 3, the bar adds 3.
  • On phones, it fills the width. The bar sits at the very bottom, and the button shows a cart icon instead of text.
  • It steps aside for chat. When the Shopify Inbox logo Shopify Inbox chat is active on the page, Horizon keeps the bar hidden so it doesn’t cover the chat.

How to add a Dawn sticky add to cart bar without an app

In Dawn, you add the Dawn sticky add to cart with one Custom Liquid block and the code below. You don’t edit any theme files, so you can remove it with one click.

Step 1: Duplicate your theme

Go to Online Store, then Themes. Click the … button next to your theme and choose Duplicate. Work on the copy, preview it, and publish it when you are happy.

Step 2: Add a Custom Liquid block

  1. On the copy, click Edit theme, then choose Products and Default product at the top.
  2. In the Product information section, click Add block and choose Custom Liquid.
  3. Drag the block under Buy buttons. The bar moves itself to the bottom of the screen, so this spot just keeps things tidy.

Custom Liquid is a normal block, like the ones in Shopify’s guide to sections and blocks. You can hide it or delete it at any time.

Dawn sticky add to cart: Custom Liquid block under Buy buttons in the Dawn theme editor
Dawn: add a Custom Liquid block to Product information and paste the code into the Liquid code box.

Step 3: Paste the code

Copy this code into the Liquid code box and click Save.

<div class="satc" data-satc hidden>
  <div class="satc__info">
    <p class="satc__title">{{ product.title | escape }}</p>
    <p class="satc__price" data-satc-price></p>
  </div>
  <button type="button" class="satc__btn button" data-satc-btn>Add to cart</button>
</div>
<style>
  .satc { --satc-gap: 80px; /* room for a chat button on phones, use 0px if you have none */
    position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
    width: min(600px, calc(100% - 32px)); transform: translate(-50%, 160%);
    display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px;
    background: rgb(var(--color-background)); color: rgb(var(--color-foreground));
    border: 1px solid rgba(var(--color-foreground), 0.15); border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); transition: transform 0.25s ease; }
  .satc.is-on { transform: translate(-50%, 0); }
  .satc[hidden] { display: none; }
  .satc__info { flex: 1; min-width: 0; }
  .satc__title, .satc__price { margin: 0; font-size: 1.4rem; line-height: 1.3;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .satc__price { font-weight: 600; }
  .satc__btn { flex: none; min-width: 0; min-height: 4.4rem; padding: 0 2rem; }
  @media (max-width: 749px) {
    .satc { left: 12px; right: calc(12px + var(--satc-gap)); width: auto; transform: translateY(160%); }
    .satc.is-on { transform: none; }
    .satc__title { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .satc { transition: none; } }
</style>
<script>
  (function () {
    var bar = document.currentScript.parentNode.querySelector('[data-satc]');
    var info = bar && bar.closest('product-info');
    var main = info && info.querySelector('button[name="add"]');
    if (!main) return;
    document.querySelectorAll('body > [data-satc]').forEach(function (old) { old.remove(); });
    document.body.appendChild(bar);
    var btn = bar.querySelector('[data-satc-btn]');
    var priceEl = bar.querySelector('[data-satc-price]');

    function sync() {
      var label = (main.querySelector('span') || main).textContent.trim();
      if (btn.textContent !== label) btn.textContent = label;
      btn.disabled = main.disabled;
      var p = info.querySelector('[id^="price-"]');
      var last = p && !p.classList.contains('hidden') ? p.querySelector('.price-item--last') : null;
      var price = last ? last.textContent.trim() : '';
      if (priceEl.textContent !== price) priceEl.textContent = price;
    }
    btn.addEventListener('click', function () { if (!main.disabled) main.click(); });

    var footer = null, ticking = false;
    function show() {
      ticking = false;
      footer = footer || document.querySelector('footer');
      var past = main.getBoundingClientRect().bottom < 0;
      var atFooter = footer && footer.getBoundingClientRect().top < window.innerHeight;
      var on = past && !atFooter;
      bar.hidden = false; bar.classList.toggle('is-on', on); bar.inert = !on;
    }
    function onScroll() { if (!ticking) { ticking = true; requestAnimationFrame(show); } }
    window.addEventListener('scroll', onScroll, { passive: true });
    window.addEventListener('resize', onScroll);
    new MutationObserver(sync).observe(info, { subtree: true, childList: true, characterData: true, attributes: true, attributeFilter: ['disabled', 'class'] });
    sync(); show();
  })();
</script>

No chat or messaging button on your store? Change 80px in the first CSS line to 0px. The bar then uses the full width on phones.

Step 4: Test it on your phone

  1. Open a product on your phone and scroll past the Add to cart button. The bar should slide up.
  2. Scroll back up, pick another size, and scroll down again. The price and button text should match.
  3. Set the quantity to 2 and tap the bar. Your cart should hold 2.
  4. Pick a sold out variant. The bar should say Sold out and stay greyed out.
Shopify sticky add to cart bar on a phone in Horizon and in Dawn with the code
Horizon’s built-in bar (left) and the Dawn code (right), which leaves room for a chat button.

What the code does, and how I tested it

  • It presses Dawn’s own button. So the chosen variant, the quantity and your cart drawer work exactly as before.
  • It copies the button text. The bar says Add to cart, Sold out or Unavailable, and Pre-order if you use my pre-order button.
  • It copies the current price, including sale prices after a variant change.
  • It respects the iPhone home bar. The bar stays above the safe area at the bottom of the screen.
  • It leaves 80 px for a chat button on phones and hides near the footer.
  • It stays out of the way when hidden. Keyboard users can’t tab into it until it shows.

I tested this Shopify sticky add to cart code in a page built from Dawn 16.2.0’s real CSS and cart script at 360, 390 and 1280 px wide. It passed every check: no sideways scrolling, no overlap with a chat bubble, the right variant and quantity in the cart form, and correct updates after a variant change. Pasted into Horizon by mistake, it stays hidden and does nothing. I didn’t test other themes built on Dawn, so try yours on a copy first.

If you removed the quantity box with my quantity selector guide, the bar simply adds 1, like the main button.

Does a sticky add to cart bar increase sales?

It can, but only on the right pages. A Shopify sticky add to cart bar helps when the product page is long and most visitors shop on a phone. It doesn’t fix a weak offer, high shipping costs or a slow store.

You will find many sites quoting a fixed sales lift. I couldn’t trace those numbers to a study I could check, so I don’t repeat them. On client stores, this is what I see:

  • It helps most on long pages with many photos, size guides and reviews, and on stores where most traffic comes from phones.
  • It helps less on short pages where the button never leaves the screen, and on products with many options that shoppers must scroll back to choose.

How to measure it in your store

Don’t rely on another store’s results. In your Shopify admin, go to Analytics, then Reports, and open Conversion rate over time. Write down Sessions with cart additions and the conversion rate for 2 to 4 weeks. Then turn on the sticky add to cart bar and compare the same number of weeks.

Keep everything else the same while you test. A sale, a new ad or a holiday week will change the numbers more than the bar does. If you get visits but few carts at all, start with my guide to traffic but no sales.

App or no app: which way should you use?

For most stores, a Shopify sticky add to cart needs no app at all. Use the free way your theme allows, and add an app only for features you really need.

Shopify sticky add to cart options compared: Horizon setting, Dawn code and a sticky bar app
Which option fits your store, as of November 2026.
  • Horizon: use the built-in setting. An app would only add a second bar.
  • Dawn: use the code above if you are fine with pasting code. It’s free and adds no app script, which helps store speed.
  • An app: worth a look if you use another theme, or want extras such as a variant picker inside the bar. The Shopify App Store has many Shopify sticky add to cart apps. Check the price page, recent reviews and theme support before you install. I haven’t tested them, so I don’t recommend one.

Common mistakes and how to fix them

Most sticky bar problems I fix on client stores come from these five causes.

The Horizon bar doesn’t show

First, check the Sticky add to cart bar box on the template your product uses. Then scroll well past the Buy buttons. On a short page, or on a wide screen where the product details stay in view, the bar may never need to appear. If Shopify Inbox chat is on, Horizon hides the bar on purpose.

Two sticky bars on one page

This happens when a sticky bar app runs on a theme that already has one. Turn off one of them. Also uninstall apps you no longer use, because their code can stay behind.

The bar covers a chat button

Horizon only looks for Shopify Inbox. Other chat apps aren’t detected, so test on your phone. In Dawn, keep the 80 px gap in my code, or check your chat app’s settings for a position option.

The bar adds the wrong variant

Some copy-paste codes build their own form and only read the first variant. Mine presses the main button, so it can’t send a different variant. If even the main button fails, see my guide to Add to cart not working.

Forgetting your other product templates

Both the Horizon setting and the Dawn block live in one template. Products on a second template won’t get the bar until you set it up there too.

Frequently asked questions

What is a sticky add to cart?

It is an Add to cart button that stays fixed at the bottom of the screen after the shopper scrolls past the main button. It saves shoppers from scrolling back up to buy, which matters most on phones.

How do I add a sticky add to cart in Shopify?

In Horizon, check Sticky add to cart bar in the Product information section of your product template. In Dawn, add a Custom Liquid block with the code from this guide, or use an app.

Does the Dawn theme have a sticky add to cart?

No. As of November 2026, Dawn 16.2.0 has no sticky add to cart setting. Its Sticky content setting only keeps the product details column in place on larger screens.

How do I remove the sticky add to cart in Shopify?

In Horizon, uncheck Sticky add to cart bar in the Product information section and save. In Dawn, delete or hide the Custom Liquid block. If an app adds it, turn it off in the app or its app embed.

Is there a free sticky add to cart for Shopify?

Yes. Horizon includes one at no extra cost, and the Dawn code in this guide is free too. App prices and limits differ, so check each listing before you install.

Why is my sticky add to cart bar not showing in Horizon?

The setting may be off on that template, you may not have scrolled past the Buy buttons yet, or Shopify Inbox chat is active. Horizon hides the bar while the Inbox chat is on the page.

A Shopify sticky add to cart bar is a small change, so always test it on your own phone before you call it done. For more free help, see my free Shopify tools. If you would rather have the bar set up and tested on your theme, I do this as part of my Shopify store redesign service. Message me on WhatsApp and I will take a look.

Zobaer Hossain, Shopify designer

Written by Zobaer H.

Shopify Select Partner with 10+ years of experience and 5,000+ clients. I design and build Shopify stores, and I write these guides from real client work.

Shopify Select Partner badge

In this guide

    ★★★★★ 4.9 from 1,350+ client reviews

    Let's start

    Ready to start your store?

    Send me your idea or store link. I'll reply with honest advice and a fixed quote.

    ✓ Free quote✓ Fixed price✓ You own everything