How to Create a Shopify Discount Code With or Without Sale Item Restrictions
How to Create a Shopify Discount Code With or Without Sale Item Restrictions
Shopify makes it easy to create discount codes and automatic discounts for your online store. But there is one important detail many merchants discover too late: a standard Shopify discount can apply to products that are already on sale, unless you set up your discount strategy carefully.
In this guide, you will learn when to create a discount directly in Shopify and when to use SDB - On Sale Discount Blocker to prevent discount codes from applying to products that are already discounted.
When You Can Create a Discount Directly in Shopify
If you want to create a regular Shopify discount code without special restrictions for sale items, you can create it directly in your Shopify admin.
This is the right option when you want the discount to apply normally based on Shopify's standard discount settings. For example, you might want to create:
- A percentage discount code, such as 10% off
- A fixed amount discount, such as $10 off
- A free shipping discount
- An automatic discount
- A discount for selected products, collections, or customers
If you do not need to block the discount from applying to products that are already on sale, Shopify's built-in discount feature may be enough.
When You Need a Shopify App to Block Discounts on Sale Items
If you want your discount code to apply only to full-price products and not to products that are already on sale, you need additional control.
This is where SDB - On Sale Discount Blocker helps. The app lets Shopify merchants create discounts that do not apply to sale items. Instead of allowing customers to stack a discount code on top of an already discounted product, the app blocks the discount from applying to that sale item.
This is especially useful if your store runs seasonal sales, clearance promotions, Black Friday campaigns, Cyber Monday offers, influencer codes, email marketing discounts, or loyalty campaigns.
What Counts as a Sale Item in Shopify?
In SDB - On Sale Discount Blocker, a product is considered a sale item when its compare-at price is higher than its current selling price.
For example:
- Current price: $50
- Compare-at price: $100
- Result: The product is treated as a sale item
In this case, the app blocks the discount from applying to that product because the item is already discounted.
Why Blocking Discount Codes on Sale Items Matters
Discount stacking can reduce your margins quickly. A product may already be marked down from $100 to $50. If a customer then applies an extra 10%, 15%, or 20% discount code at checkout, your final selling price may become lower than intended.
For many Shopify merchants, this creates problems such as:
- Lower profit margins
- Unplanned over-discounting
- Customers combining multiple promotions
- Less control over campaign profitability
- Discount codes applying to products that were meant to be excluded
Blocking discounts on sale items helps you run promotions more safely. Your customers can still use discount codes on eligible full-price products, while products that are already on sale stay protected.
Important: Create Restricted Discounts Inside the App
If you want to block discount codes on sale items, you must create the discount inside SDB - On Sale Discount Blocker.
Discounts created directly in Shopify are not controlled by the app. That means if you create a discount code in Shopify admin, the app will not apply its sale-item blocking rules to that discount.
The simple rule is:
- No sale item restriction needed? Create the discount directly in Shopify.
- Need to block discounts on sale items? Create the discount inside SDB - On Sale Discount Blocker.
How to Create a Shopify Discount Without Sale Item Restrictions
If you want to create a regular discount without blocking sale items, follow Shopify's standard discount setup process.
Step 1: Open Discounts in Shopify Admin
From your Shopify admin, go to the Discounts section.
Step 2: Create a New Discount
Choose whether you want to create a discount code or an automatic discount.
Step 3: Choose the Discount Type
Select the type of discount you want to offer. This can include a percentage discount, fixed amount discount, free shipping discount, or another available Shopify discount type.
Step 4: Configure the Discount Settings
Set the discount value, eligibility, usage limits, active dates, and any other standard Shopify rules you want to use.
Step 5: Save the Discount
Once saved, the discount can be used according to the rules you configured in Shopify.
This option is best when you are comfortable with the discount applying according to Shopify's native discount rules and you do not need to automatically exclude sale items.
How to Create a Shopify Discount That Does Not Apply to Sale Items
If your goal is to prevent discount codes from applying to products that are already on sale, create the discount inside SDB - On Sale Discount Blocker.
Step 1: Open SDB - On Sale Discount Blocker
Install and open the app from your Shopify admin.
Step 2: Create a Discount Inside the App
Start a new discount inside the app. You can choose the discount method, discount type, and discount value.
The app supports both code-based discounts and automatic discounts.
Step 3: Use Sale Item Blocking
Sale item blocking is designed to prevent the discount from applying to products that are already marked down with a compare-at price.
When the customer adds products to the cart, the app checks whether each item is eligible for the discount. Full-price products can receive the discount, while sale items are excluded.
Step 4: Configure Discount Combinations
You can also control how the discount combines with other discounts, including product discounts, order discounts, and shipping discounts.
Step 5: Save and Activate the Discount
After the discount is saved and activated, SDB - On Sale Discount Blocker enforces the rules in real time.
Example: Discount Code With Sale Item Blocking
Imagine you create a 10% discount code inside SDB - On Sale Discount Blocker.
A customer adds two products to the cart:
- A full-price product for $30
- A sale product for $50 with a compare-at price of $100
The 10% discount applies to the full-price $30 product. The sale product is excluded because it is already discounted.
This gives you a cleaner discount strategy: customers can still use the promotion, but they cannot stack the discount on top of products that are already on sale.
Shopify Discount Code vs. SDB - On Sale Discount Blocker
| Discount Goal | Where to Create It |
|---|---|
| Create a regular discount code | Shopify admin |
| Create an automatic discount without sale item restrictions | Shopify admin |
| Allow discounts to apply to sale items | Shopify admin |
| Block discount codes on sale items | SDB - On Sale Discount Blocker |
| Apply discounts only to full-price products | SDB - On Sale Discount Blocker |
| Prevent discount stacking on already discounted products | SDB - On Sale Discount Blocker |
Best Practices for Shopify Discount Codes
A good discount strategy should be simple for customers and safe for your margins. Here are a few best practices:
- Use Shopify's native discounts for simple promotions without sale item restrictions.
- Use SDB - On Sale Discount Blocker when you want to exclude sale products from discounts.
- Name your discounts clearly, such as โ10% Off Full-Price Items Onlyโ.
- Test every discount before launching a campaign.
- Avoid combining multiple discounts unless it is part of your strategy.
- Recreate existing Shopify discounts inside the app if they need sale item blocking.
Frequently Asked Questions
Can I create a Shopify discount code without using an app?
Yes. If you do not need to block the discount from applying to sale items, you can create a discount code directly in Shopify.
Can Shopify block discount codes on sale items by default?
Shopify has native discount settings, but if you specifically want to prevent discounts from applying to products that are already on sale based on compare-at price, you need additional control from an app like SDB - On Sale Discount Blocker.
Do I need to create the discount inside the app?
Yes, if you want the app to block discounts on sale items. Discounts created directly in Shopify will not be controlled by SDB - On Sale Discount Blocker.
Does the app work with automatic discounts?
Yes. SDB - On Sale Discount Blocker supports both automatic discounts and code-based discounts.
What happens if the cart contains both full-price and sale products?
The discount can apply to eligible full-price products, while sale products are excluded from the discount.
Will customers see an error when a sale item is blocked?
The discount simply does not apply to the sale item. Eligible products in the cart can still receive the discount.
Final Thoughts
If you need a simple Shopify discount code with no special restriction for sale items, Shopify's built-in discount tools are often enough.
But if you want to protect your margins and prevent customers from applying discount codes to products that are already on sale, create the discount inside SDB - On Sale Discount Blocker.
The difference is simple: use Shopify for unrestricted discounts, and use SDB - On Sale Discount Blocker when you want to block discounts on sale items.