CRMFull CRM, checkout & AI ads — from $79/mo
◆ Guide

Shopify discount codes, before checkout.
Four ways to apply them early.

Shopify's discount code field lives at checkout — customers enter codes there, not on your cart page. If a shopper doesn't see their discount until the last step, some never get that far. This guide covers the four ways to apply or show a discount before the checkout page: share links that auto-apply the code, automatic discounts that need no code at all, cart-page code fields, and running your own checkout. Every Shopify claim was checked against Shopify's own docs on September 3, 2026, with sources at the bottom.

UPDATED SEP 2026·7 MIN READ·ALL CLAIMS SOURCED
01 / The default

Why the discount field lives at checkout.

Out of the box, Shopify handles discounts one way: "Customers enter a specific code at checkout to receive a discount."1 The cart page has no built-in code field, and there's no setting in the admin to move one there. That's not an oversight — checkout is where Shopify knows the full order, so it's where a code can be validated against the products, quantities, and customer in front of it.

The problem is what shoppers do in the meantime. A customer holding a 20% code sees full price in their cart and has to trust that the discount will show up later. One who doesn't have a code sees an empty "Discount code" box at checkout and wonders what they're missing. Both are friction, and both happen at the worst possible moment — right before payment.

Shopify gives you two native ways around it, your theme or an app gives you a third, and owning the checkout gives you a fourth. In order of effort:

02 / Option 1

Share links that apply the code automatically.

The simplest fix: never make the customer type the code at all. Every discount in your admin can generate a shareable link, and when a customer opens it, the discount "applies automatically to your customer's next checkout cart, or to any active carts they have open."2 Here's the process:

  1. Open your discounts. In the Shopify admin, go to Discounts.
  2. Pick the discount. Click the name of the discount you want to promote. Shareable links "work only for active discounts,"2 so make sure it's live.
  3. Get the shareable link. Click Promote, then select Get a shareable discount code.
  4. Choose where the link lands. Pick the page, product, or collection the link should open — send a product-specific offer straight to that product.
  5. Copy the link. Click Copy link, or download the QR code for print and packaging inserts.2
  6. Share it. Drop the link into your emails, ads, and social posts. The customer clicks, shops, and the discount is already on their cart when they reach checkout.

There's a developer-side variant of the same idea: cart permalinks can carry a ?discount=CODE parameter that applies an active code when the customer lands on checkout.3 That's useful when you're building links programmatically — email flows, affiliate links, ad UTMs.

The catch: the discount is applied before checkout, but it's still invisible until the customer sees their totals. If the shopper forgets they clicked a discount link — or your theme doesn't surface the applied discount in the cart — you've solved the typing problem but not the reassurance problem.
03 / Option 2

Automatic discounts. No code, anywhere.

If everyone qualifies, skip codes entirely. Automatic discounts "are automatically applied in the cart and at checkout when eligibility conditions are met"4 — the customer never types anything, and the discount shows up in the cart, which is exactly what someone searching for "discount code before checkout" usually wants.

  1. Create the discount. In Discounts, create a new discount and set its method to Automatic discount instead of a discount code.
  2. Set the conditions. Minimum purchase amounts, specific products or collections, Buy X get Y requirements — whatever qualifies the order.
  3. Mind the cart. "For an automatic discount to apply correctly, your customers need to add all eligible items to their cart" before checking out.4

Two limits worth knowing before you build a promotion calendar around this: you can have "a maximum of 25 active automatic discounts," and that total includes app-based discounts.4 Automatic discounts also don't apply to post-purchase offers at checkout.4 And because there's no code, there's no way to gate the deal to a specific audience — anyone whose cart qualifies gets it.

04 / Option 3

A code field on the cart page itself.

If what you specifically want is the field — a visible "Enter discount code" box in the cart — that's a theme-or-app job, because Shopify doesn't ship one:

This is the most literal answer to the question, and it works. It's also worth being honest about the trade-off before you add it — see the note below.

The UX caveat: a prominent, empty discount field is an invitation. Shoppers who see one — in the cart or at checkout — often leave to go hunt for a coupon, and some of them don't come back. If most of your customers don't have codes, an always-visible field can cost more than it converts. The gentler patterns: show the field only when it's relevant, auto-apply via links (option 1), or make the discount automatic so there's nothing to hunt for (option 2). This is general conversion craft, not a Shopify rule — test it on your own store.
05 / Option 4

Own the checkout. Put offers where you want.

Options 1–3 all work around the same constraint: the checkout is Shopify's, so discounts go where Shopify puts them. The fourth option removes the constraint — keep Shopify as your storefront and run your own checkout layer in front of the payment step. This is what Admoji does.

Your customers browse your Shopify storefront as usual. When they check out, they land on an Admoji checkout running on your own domain — like checkout.yourdomain.com — while every product, order, and customer syncs with Shopify in real time.5 Because the checkout pages are yours, discount handling isn't a workaround anymore: fields, applied-discount banners, and offers sit wherever you design them, not wherever the platform allows.

Pricing is published: $79/mo + 0.35% of volume on the Launch plan, no long-term contracts, with a 14-day free trial and no credit card required.5

To be clear about the trade-off: this is a different architecture, not a Shopify setting. If a share link or an automatic discount solves your problem, options 1 and 2 are free and take minutes. The fourth path is for stores that keep hitting the edges of Shopify's checkout — discount placement today, offer placement and checkout upsells tomorrow. If you're weighing that broader question, our guide to customizing the Shopify checkout page covers every path.

06 / Side by side

The four options, compared.

ApproachWhat the shopper doesWhere the discount showsCost & limits
Discount share linksClicks a link — no typingApplied to the cart before checkout; visibility depends on your themeFree, built in. Active discounts only.
Automatic discountsNothing — it just appliesIn the cart and at checkout, no codeFree, built in. Max 25 active (incl. app-based); no audience gating.
Cart-page code fieldTypes the code in the cartCart page field; applied at checkoutTheme setting, app subscription, or developer time. Can invite coupon-hunting.
Your own checkout (Admoji)Whatever you designWherever you want — the pages are yours$79/mo + 0.35% of volume · 14-day free trial

Shopify rows from help.shopify.com and shopify.dev, observed Sept 3, 2026. Admoji row from admoji.com published pricing. If anything here is out of date, tell us and we'll fix it.

Stay with Shopify's tools if…

  • A share link or automatic discount covers your promotions
  • Your theme or an app gives you the cart field you're after
  • Discount placement is your only checkout complaint
The Admoji case

Add your own checkout layer if…

  • You want discounts and offers placed by design, not by workaround
  • You want one-click upsells in the purchase flow
  • You want your own merchant account behind the checkout
07 / FAQ

Common questions.

Can customers enter a discount code before checkout on Shopify?
Not natively — Shopify's built-in code field is at checkout, not on the cart page. Your four options: shareable discount links that auto-apply the code to the cart, automatic discounts that apply in the cart with no code at all, a cart-page code field added through your theme or an app, or running your own checkout layer where you control the whole flow.
How do Shopify discount share links work?
In the admin, open a discount, click Promote, then Get a shareable discount code. Choose which page, product, or collection the link opens, then copy the link or download a QR code. When a customer opens it, the discount applies automatically to their next checkout cart or any active carts they have open — no typing. Links only work for active discounts.
What's the difference between a discount code and an automatic discount?
A discount code has to be entered by the customer at checkout. An automatic discount is applied by Shopify in the cart and at checkout when the eligibility conditions are met — the customer never types anything, but anyone who qualifies gets it. You can have a maximum of 25 active automatic discounts, including app-based ones.
Can I add a discount code field to my Shopify cart page?
Yes, but not with a built-in setting. Some themes include one, apps can add one, or a developer can build one into your cart template — all of them collect the code early and pass it through to checkout. The alternative is a checkout layer like Admoji, where the checkout pages are yours and discount handling goes wherever you design it — see our guide to customizing the Shopify checkout page for the full picture.
◆ The fourth option

Discounts where you want them.
Because the checkout is yours.

Keep your Shopify storefront. Get a custom checkout on your own domain, one-click upsells, and a full CRM — for $79/mo + 0.35%.

Start your free trial →

or see everything Admoji does →

14-DAY FREE TRIAL · NO CREDIT CARD REQUIRED · CANCEL ANYTIME

Sources — all observed September 3, 2026

  1. help.shopify.com — Discount codes — "Customers enter a specific code at checkout to receive a discount."
  2. help.shopify.com — Managing and editing your discounts — Promote → Get a shareable discount code; the discount "applies automatically to your customer's next checkout cart, or to any active carts they have open"; links and QR codes work only for active discounts.
  3. shopify.dev — Create cart permalinks — the ?discount=CODE parameter on cart permalinks, applied when the customer lands on checkout.
  4. help.shopify.com — Automatic discounts — "automatically applied in the cart and at checkout when eligibility conditions are met"; "a maximum of 25 active automatic discounts," including app-based; all eligible items must be in the cart; not applied to post-purchase offers.
  5. admoji.com — Admoji's published features and Launch pricing: custom Shopify-style checkout on your own domain, real-time Shopify sync, one-click upsells, smart routing and retry logic, your own merchant account, full CRM, $79/mo + 0.35% of volume, 14-day free trial, no credit card required.

Shopify features change; figures reflect what Shopify published on the date above. If you spot something outdated, email info@admoji.com and we'll correct it promptly.

From $79/mo14-day free trial
Start free trial