Shopify cart drawer not working
Why the Shopify cart drawer doesn't open after Add to cart or goes to the cart page instead, and how to fix it in your theme settings and app embeds.
A cart drawer slides in from the side of the page, so shoppers see their cart without leaving the product. When it "doesn't work", the theme is usually set to do something else, or two apps are fighting over the cart. Find what you see, then check the matching setting.
| What you see | Likely cause |
|---|---|
| Add to cart goes to the cart page | The theme's cart type is Page |
| Add to cart updates the count, but the drawer stays closed | The drawer doesn't open after an add |
| A different cart, or two carts, open | Another app replaces the cart |
| You changed the setting, the store didn't change | You edited a theme that isn't published |
| Buy it now skips the cart | That's how Buy it now works |
The cart type is Page#
Themes decide what the cart is: a page at /cart, a drawer, or a small popup.
- In Online Store, select Customize on your published theme.
- Open Theme settings (the gear icon), then Cart.
- Set the cart type to Drawer. In Horizon it's Type: Page or Drawer. In Dawn it's Cart type: Drawer, Page or Popup notification.
- Save.
Some themes have no drawer at all. Check your theme's documentation, or use an app that adds one.
The drawer doesn't open after an add#
Some themes add the item and update the cart count without opening the drawer, so shoppers keep shopping. In Horizon, turn on "Add to cart" auto-opens drawer in Theme settings › Cart. In Dawn, Popup notification shows a small confirmation instead of the drawer; pick Drawer to open the full cart.
If the drawer still doesn't open, the product page may use a custom add to cart form that reloads the page instead of using the theme's own add to cart. Undo recent theme code edits, or ask the developer who made them.
Another app replaces the cart#
Cart drawer, upsell and free gift apps often bring their own drawer. With two of them on, one closes the other, or both open.
- In Theme settings › App embeds, see which cart apps are on.
- Keep one, and turn the others off.
- If you uninstalled a cart app, check that its embed is gone too.
You edited a theme that isn't published#
The theme editor opens the theme you selected, which may be a copy or a draft. Check that the theme you changed is the one under Current theme in Online Store › Themes, then test on your live store in a private window.
Buy it now skips the cart#
Buy it now and the other accelerated checkout buttons go straight to checkout with that one product. The drawer never opens for them, by design. Shoppers who use Add to cart see the drawer.
Get a drawer that works with any theme with Breakly Cart#
Breakly Cart replaces your theme's cart with its own drawer, from the cart icon and after every add to cart, so it works the same on every theme. It's one app embed: turning it off, or uninstalling the app, puts your theme's cart back.
The drawer adds a free shipping bar, free gifts that add themselves, one-tap recommendations and an order note. Keep your theme's cart type as Drawer (or Popup notification in Dawn): with Page, some themes, like Dawn, go to the cart page after an add before Breakly Cart can open.