Sooner or later every store needs to say no to a discount code. A code leaks to a coupon site. A sale starts and codes shouldn’t apply on top of the markdowns. Customers start stacking two promotions you never meant to combine. Or you want a week where no code works at all.
Shopify is excellent at creating discounts and surprisingly thin at blocking them. This guide covers the whole map: what you can do with Shopify out of the box, where the native tools stop, and how to handle the blocking scenarios merchants run into most.
Natively you can deactivate a discount, let it expire, or tighten its combination settings. Anything conditional, like stopping codes on sale items or switching every code off for a weekend, takes a rule at checkout.
What Shopify can do natively
A few native tools cover the basics, and you should use them properly before reaching for anything else:
Disable the discount. In your Shopify admin under Discounts, open the discount and deactivate it. The code stops working immediately and the discount stays in your list, so you can switch it back on later. Deleting it is permanent. This is the right answer when a discount of yours has run its course.
Let it expire. If you know when a code should stop, give it an end date, or a limit on total uses. Shopify turns it off without anyone having to remember.
Combination settings. Every native discount has checkboxes controlling whether it combines with other product, order, or shipping discounts. Setting these strictly on every discount limits stacking. Between the discounts you remembered to configure, anyway.
Where the native tools stop
The gaps show up as soon as your scenario has any nuance:
- There’s no store-wide off switch. To stop all codes for a sale weekend, you’d deactivate every discount one by one (including the ones apps keep generating), then reactivate them all afterwards.
- Blocking is all-or-nothing. Deactivating a code kills it for everyone. There’s no “this code doesn’t work on sale items” (that one gets its own guide) or a store-wide “codes only work over a $50 subtotal.”
- No blocking by pattern. If a whole family of codes leaked (
SUMMER10,SUMMER15,SUMMER-VIP), each one is a separate trip to the admin. - Combination settings only govern your own discipline. They’re per-discount checkboxes; one forgotten discount (or one minted by an app with looser defaults) reopens the stacking door.
- No custom rejection message. Customers see a generic error with no explanation, and confused customers email support.
Everything below fills those gaps with PromoLock, which adds a control layer inside Shopify’s own checkout. It applies to every code entered there, whether it was created natively, by PromoLock, or by another app, and it never touches your theme.
Which tool for which job
| You want to | Native Shopify | PromoLock |
|---|---|---|
| Disable one code | Deactivate the discount | Block only these codes |
| Disable every code for a sale | Deactivate each discount, then turn each back on | Block all codes |
| Block a family of leaked codes | One discount at a time | One pattern, like SUMMER# |
| Keep codes off sale items | Limit each code to a full-price collection | Lock Discount Usage On Sale Items, or a discount set to Exclude sale items |
| Allow one code per order | Combination checkboxes on every discount | Discount Stacking Lock |
| Block by cart or customer | Minimum purchase and eligibility, set per discount | Custom rules |
If your row’s native answer is good enough, use it. The scenarios below are for when it isn’t.
Scenario 1: block all discount codes
The sale-weekend case: prices are already cut, and codes shouldn’t apply on top.
In PromoLock’s Controller, turn on Discount Lock and set its mode to Block all codes. Every discount code entered at checkout is rejected with a message you write. Something graceful works best, like “Prices are already reduced for the sale, codes resume afterwards.” After the event, one switch turns it back off. No discount was deactivated, so every campaign resumes exactly as it was.
Scenario 2: block codes on sale items
Often the sale isn’t store-wide. Half the catalog is marked down, the rest is full price, and you want codes to keep working on the full-price half. Shopify has no “skip sale items” setting, because discount codes ignore the compare-at price.
The Controller’s Lock Discount Usage On Sale Items covers it. One mode rejects codes when the cart holds any marked-down product. The other rejects them only when sale items pass a percentage of the cart’s value that you set, so a mostly full-price cart keeps its code. Codes created by other apps are covered too.
Discounts you build in PromoLock don’t need the lock. Each one has an On-sale items setting that defaults to Exclude sale items, so the code works on the full-price lines and leaves the marked-down ones alone, with no rejection at all. The sale items guide covers the lock’s two modes and the gentler alternatives.
Scenario 3: block one code, or a whole family
The leaked-code case. Same Discount Lock, mode Block only these codes, and list what should die. Code lists accept patterns using # as a wildcard:
| You enter | It blocks |
|---|---|
SUMMER10 | Exactly that code |
SUMMER# | Every code starting with SUMMER |
#2026 | Every code ending in 2026 |
#SAVE# | Every code containing SAVE |
So the leaked campaign is one entry, not fifteen. And the block takes effect at checkout immediately, faster than editing discounts one by one. The block or allow specific codes guide has the steps, and if the code is already listed on coupon sites, the leaked code walkthrough covers finding where.
Scenario 4: allow only approved codes
The tight-ship case: your official codes work and nothing else does, including codes you don’t know exist. Mode Block all codes except, then list the codes (or patterns, like VIP#) that stay live. Anything an app mints without your knowledge is rejected by default.
Scenario 5: block code stacking
The Controller’s Discount Stacking Lock enforces one code per order, store-wide, with no per-discount checkbox discipline required. The first code is kept, extras are rejected with your message. A stacking exceptions list handles the combinations you do want: a free-shipping code that may ride along with anything always applies and doesn’t count toward the limit. There’s a separate post on why the native checkboxes let stacking through.
Scenario 6: block conditionally by subtotal, customer, or products
For everything with an “only when” in it, PromoLock has a rule builder. A rule watches all codes or specific ones, checks conditions (cart subtotal, whether the customer is logged in or new, customer tags, products or collections in the cart, how many codes are on the order), and blocks with a message you write. A few real ones:
- Block all codes when the cart subtotal is under $50.
- Block
WELCOME15for logged-in customers who’ve ordered before. - Block every code when more than one is on the order, except
SHIP#codes. - Allow
VIP20as an exception for customers tagged VIP, even while stricter rules apply to everyone else.
Keeping codes off one collection for good is a common enough version of this that it has its own guide.
The part most merchants ask about
Can I pause a discount code without deleting it? Yes. Natively, deactivating a discount stops its code and keeps the discount in your admin, ready to reactivate. With Discount Lock you don’t deactivate anything. The lock is a switch, and so is every custom rule, so turning one off puts things back exactly as they were.
Does a blocked code break checkout? No. The rejection happens on the discount field, inside Shopify’s own checkout, before the order exists. The customer sees your message on the code box and completes their purchase without it.
Do blocks apply to codes from other apps? Yes. The control layer sits at checkout, so any code entered there is subject to your rules, wherever it was created.
What does the customer see? Whatever you wrote. An honest message like “This code can’t be used on sale items” converts better than a mystery error, and every lock and rule carries its own.
Blocking is half the story. Knowing what slipped through before you set the rules is the other half. PromoLock’s analytics reads your order history and puts a number on what stacked codes and sale-item discounts cost you, which tells you which of the scenarios above deserves your attention first. The Stop discount loss from day one playbook walks that order of operations.