Skip to main content

Discount code field in the cart

Enable the discount code field in the cart drawer — choose Basic mode (input field only) or Advanced mode to display a tappable list of all available codes inside the cart.

A
Written by Aditya Singh

The discount codes feature lets customers enter promo codes inside the cart drawer without leaving for checkout. In Advanced mode, you can also display a tappable list of available codes right inside the cart — so customers don't bounce to Google searching for "[your store] discount code".

Open Cart Editor → Discount Codes to configure it. (Discount Codes is a direct sidebar item — not nested under Settings.)

Step 1: Open Discount Codes in the Cart Editor

From your Oxify dashboard, click Cart Editor in the sidebar. In the Cart Editor's left sidebar, click Discount Codes.

[Screenshot: Cart Editor sidebar showing Discount Codes selected]

The eye icon next to a sidebar item shows whether the feature is currently enabled (visible eye = on, crossed-out eye = off).

Step 2: Enable Discount Codes

At the top of the panel, click the Enable button to turn the feature on. When enabled, the header shows Discount Codes On with a red Disable button next to it.

[Screenshot: Discount Codes header showing "On" status with Disable button]

Step 3: Read the Discount limitations note

Below the toggle, you'll see a yellow notice titled Discount limitations. Click Show More to expand it.

The notice explains that the cart drawer offers a streamlined discount experience that may not handle every edge case Shopify's standard checkout supports — especially complex stacked discounts, BOGO logic with intricate rules, or some shipping discount combinations.

What this means in practice: for 95% of standard discount codes (% off, $ off, free shipping, simple buy-X-get-Y), everything works exactly as expected. If you have unusual stacking rules or custom Shopify Functions discounts, test them in the cart drawer before launching a major sale.

Step 4: Pick your Discount Type — BASIC or ADVANCED

This is the most important choice. The Discount Type toggle has two options:

  • BASIC — A simple input field where customers type in a discount code and click Apply. Use this if you mostly run automatic discounts and just want to support the occasional code-bearing customer.

  • ADVANCED — Adds a visible list of discount codes inside the cart that customers can tap to apply directly. Use this when you want to actively promote specific codes (clearance code, first-time-buyer code, free-shipping code) without making customers type anything.

The Advanced mode is what customers usually mean when they ask "how do I show all my discount codes inside the cart?" — it surfaces them as tappable chips so customers don't have to hunt for codes elsewhere.

Step 5: Configure Discount Code Settings

Below the Discount Type toggle, the Discount Code Settings panel handles the input field text. Both modes share these two fields:

  • Discount Input Placeholder (default: "Discount code") — the greyed-out hint text inside the input field before customers type. You can change this to "Promo code", "Enter your code here", "Have a code? Enter it", etc.

  • Discount Apply Button Text (default: "APPLY") — the text on the button next to the input field. Common alternatives: "Apply Code", "Add", "Use", "Redeem".

Click Add translations in the top-right of either field to add per-language overrides for international stores.

Step 6: Style the Apply button (Discount Code Styles)

The Discount Code Styles panel — labeled Button Text Settings internally — controls how the Apply button looks. Five fields total:

  • Text Color — hex color (default #FFFFFF, white). The color of the "APPLY" text on the button.

  • Font Size (px) — default 16. Size of the button text. 14–18px works for most carts.

  • Font Weight — dropdown (default Bold). Options include Light, Regular, Medium, Semibold, Bold. Bold reads better on small buttons.

  • Button Radius (px) — default 15. Controls corner rounding. 0px gives sharp corners, 4–8px feels modern, 15–20px gives a pill-button look.

  • Button Background Color — hex color (default #212121, near-black). Set this to your primary brand color so the Apply button feels native to your store.

If you're keeping things simple, the defaults (white text on near-black, bold, 15px radius) work for most stores. Match the colors to your checkout button so the cart drawer feels visually unified.

Advanced mode — show all discount codes inside the cart

If you switched the Discount Type to ADVANCED, additional fields and a new section appear. This is where you set up the visible list of tappable codes.

Available coupons Title

Default: "Available coupons". The header text shown above the tappable list inside the cart drawer. Alternatives: "Today's offers", "Available discounts", "Promo codes for you", "Save with these codes".

Coupon not applicable text

Default: "Coupon not applicable to items in cart". The error message shown when a customer taps a code that doesn't match what's in their cart (e.g. a footwear-only code on a t-shirt cart). Keep this short and clear — long error messages are ignored on mobile.

Make Coupon and Offer Component Sticky

When checked, the coupon list stays pinned in view as customers scroll through their cart. Useful when you have lots of items and want the offers to remain visible. Uncheck if you'd rather keep the cart minimalist and let the codes scroll out of view.

List of Discount Codes Settings — adding the actual codes

This is the section that controls which codes actually appear inside the cart. Click the black Add Discount Code button to add a new code to the visible list.

Important: the codes you list here have to be real Shopify discount codes you've already created in Shopify admin → Discounts. Listing a code that doesn't exist in Shopify will show the customer a code they can tap, but it won't apply because Shopify will reject it.

For each code added to the list, you typically configure:

  • The actual discount code (matching the one in Shopify admin).

  • A label or short description (e.g. "10% off your first order", "Free shipping over $50").

  • Any conditions or eligibility notes you want customers to see.

You can add multiple codes — one per offer you want to surface. Common picks: a first-time-buyer code, a free-shipping code, and a seasonal sale code.

Step 7: Save and test

Save your changes, then open your storefront in incognito and add a product to the cart. The discount input field should appear inside the cart drawer. If you enabled Advanced mode, the list of available coupons should also appear with your configured codes.

Test each code — type or tap each one and verify the discount applies correctly to the cart total. If a code "won't apply", check Shopify admin → Discounts → (the code) → Combinations to make sure it's not blocked by combination rules with another active discount.

Which mode should I use?

  • Use BASIC if you mostly run automatic discounts and only occasionally hand out codes (e.g. customer service makeups, influencer codes). Customers who have a code can enter it; customers who don't won't see distracting offer chips.

  • Use ADVANCED if you actively promote specific codes (clearance, first-time-buyer, holiday sale, abandoned cart recovery) and want customers to see them inside the cart. This often increases conversion because customers who would've abandoned to "find a code" instead see the codes you'd want them to use.

  • Turn the whole feature off if you only run automatic discounts and don't issue any codes at all. A visible empty discount field can hurt conversion by signalling "you should be looking for a code somewhere".

Tip

In Advanced mode, only surface codes you actually want most customers to use. Listing your "VIP25" code publicly defeats the purpose of having a VIP code. The point of the in-cart list is to capture customers who would otherwise leave to search for a discount — so show them the codes you'd be happy for them to find anyway.

Did this answer your question?