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
- Online Store › Themes › Edit theme (on a copy of your theme if you want to test first).
- Add section or Add block › Custom Liquid, paste the code, then Save.
Your settings for the feature (for example your free shipping amount or countdown end date)
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
- Choose Sticky add to cart bar in the studio and pick phones only or all screens.
- Customize > Products > Default product > Product information > Add block > Custom Liquid.
- 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.