Theme guide

Sticky add to cart button for Shopify Dawn, without an app

What you’ll need

  • The theme editor (to add a Custom Liquid block; no code editing)

    How to get this: The theme editor
    1. Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
    2. Add section or Add block › Custom Liquid, paste the code, then Save.

    Step-by-step guide (opens in a new tab)

  • Your settings for the feature (for example your free shipping amount or countdown end date)

Make my sticky bar

What the bar does

  • Shows the product image, title and the selected variant’s price.
  • Follows variant changes and turns into Sold out when the theme’s button does.
  • An optional dropdown lets shoppers switch variants from the bar.
  • Clicks the theme’s real Add to cart button, so quantity, selling plans and the cart drawer behave as usual.

Add it

  1. Choose Sticky add to cart bar in the studio and pick phones only or all screens.
  2. Customize > Products > Default product > Product information > Add block > Custom Liquid.
  3. Paste the code and Save, then scroll down on a phone-size preview.

Horizon

Horizon includes a sticky add to cart bar (Product information section > Sticky add to cart bar). It has no variant dropdown. If you want one, turn Horizon’s off and use this bar instead, so shoppers don’t see two.

More guides