Cart drawer FAQ
Updated Nov 9, 20263 min read
On this page (7)
Why does my theme's cart still open?
A switch in the editor's Behavior panel is off, or Hype doesn't recognize your theme.
| What you see | Turn on | If it's already on |
|---|---|---|
| The cart icon goes to your cart page or opens your theme's cart | Open on cart icon clicks | Add the icon under Extra cart trigger selectors |
| Both carts open, or your theme's drawer shows instead of Hype's | Hide the theme's own cart drawer | Add the drawer under Extra native drawer selectors |
| The page reloads after adding to cart | Take over add-to-cart forms | Turn on Debug logging and message us |
To find a selector, see Theme compatibility. If your theme has its own setting for its cart drawer, turning that off also works.
Why is part of the drawer missing or crossed out?
Progress bar, Free gifts, Product recommendations and Discount code hide while the cart is empty.
| What you see | Why | What to do |
|---|---|---|
| No Progress bar | It has no goals, or its linked Hype Discounts campaign isn't live | Add a goal, or read the Hidden on your store message in the module. See Progress bar |
| No Free gifts | The module is off, the cart isn't linked to a Cart Goals discount with a free gift tier, or no gift is unlocked and in stock | See Free gifts |
| No Product recommendations | Your picks are sold out or unpublished, or Shopify has none for the products in the cart | See Product recommendations. Automatic recommendations only appear on your store, not in the editor preview |
| A discount code is crossed out | Shopify can't apply it to this cart, for example the items don't qualify or it can't combine with another code | The shopper can remove it and try another. See Discount code |
What does "Too much content to publish" mean?
A live cart can publish up to 100KB of content, including its A/B variants. Over that, saving or activating it fails and your changes don't reach your store.
Shorten or remove some modules, starting with long Custom HTML blocks. Then click Save.
Why doesn't my script run?
A script in a Custom HTML block runs once per page on your store, never in the editor preview. It can't find the block's markup with document.querySelector or getElementById, so a widget that looks for its own <div> shows nothing. Pixels such as fbq work.
Custom JavaScript in the Advanced panel runs once per page, only where a cart is live, and before the drawer is ready. To open the drawer from it, see Open the cart with JavaScript.
If you can't make this change yourself, message us and our team will help.
How do I check the drawer on my store?
See what the drawer is doing
- Turn on Debug logging in the Behavior panel.
- Click Save.
- Reload your store and open your browser's console. Some messages only show at the console's Verbose level.
- Copy the messages to send to us.
- Turn Debug logging off.
See your theme's cart instead
Add ?hype_cart=off to any store URL, or &hype_cart=off if the URL already has a ?. On that page, your cart icon, product forms and theme drawer work as they do without Hype.
Hype's drawer still loads, so adding an item can still open it. It lasts for that page only, and other shoppers aren't affected.
Was this article helpful?
Related articles
Still stuck?
Ask a follow-up and we'll see it came from “Cart drawer FAQ”.
Opens chat with your question and a link to this article.