Overview
If your discount module isn’t appearing in the cart drawer, it’s likely due to either a legacy cart token or a theme/app conflict. Below are two common causes and how to resolve them.
Reason 1 - Legacy Cart Token
Some stores still use Shopify’s older cart system, which lacks support for the features required by Upcart’s discount module. When this is detected, Upcart automatically hides the discount module to prevent issues.
How to identify
To check if your store uses an outdated cart token:
Add an item to your cart with Upcart enabled.
Open your browser’s developer console.
Paste and run the following code:
window.upcartModifyCart = (cart) => { if (!cart.token) { alert('No cart token found'); return; } const isLegacyCartToken = cart.token.match(/^[0-9a-f]{32}$/) !== null; alert("Is this a legacy cart token? " + (isLegacyCartToken ? "Yes" : "No")); return cart; }
Change the quantity of any cart item to trigger the alert.
How to fix
If you confirm the use of a legacy cart token, you’ll need to contact Shopify support or your theme developer to update your store’s cart system.
See Shopify’s documentation on Cart API Migration.
Reason 2 - Theme or App Conflict
Custom CSS or JavaScript from your theme or other installed apps may be unintentionally hiding the discount module.
How to Identify
Inspect your theme and custom CSS for any styles that include:
display: none;
visibility: hidden;
opacity: 0;
These could be targeting the discount module’s container or children elements.
How to Fix
Reach out to your theme developer or the developer of the conflicting app. Let them know the discount module needs to remain visible, and ask them to adjust their CSS or JavaScript accordingly.