Guides / How to run a flat 40% off sale on Shopify when products already have different discounts
How to run a flat 40% off sale on Shopify when products already have different discounts
By the MRP Discount team · Updated 11 November 2026
Short answer. Take the 40% off each product's compare-at (original) price, so every product ends at 60% of its original price whatever discount it had before. Shopify's own codes can't do this, so you either reset every price to the original before the sale and back after, or use an app like MRP Discount whose codes work from the compare-at price.
The problem with a normal code
Most stores don't have one discount. A few products are 12% off, some 30%, the old stock 40%. A Shopify code takes its % off each sale price, so the same "Flat 40% off" lands differently on every product. Here are four products, each with an original price of $100:
| Already off | Sale price | Normal 40% code: customer pays | MRP Discount 40% code: customer pays |
|---|---|---|---|
| 12% | $88 | $52.80 (47% off) | $60 (40% off) |
| 13% | $87 | $52.20 (48% off) | $60 (40% off) |
| 30% | $70 | $42 (58% off) | $60 (40% off) |
| 40% | $60 | $36 (64% off) | $60 (40% off) |
With the normal code, the product that was already 40% off sells at 64% off. That is the trap that stops most stores from running flat % sales at all.
The usual workaround
Before the sale, change every price back to the original. Run a plain 40% code. After the sale, put every sale price back. On a store with hundreds of products that is a long evening twice, and one missed product is wrong for the whole sale.
The way without price edits
MRP Discount (our app) makes the code take its 40% off the compare-at price instead, so every product sells at 60% of its original price and nothing on the store changes:
- Install MRP Discount from the Shopify App Store.
- Open the app in your Shopify admin and choose Create discount.
- Type a code, such as FLAT40, and the percentage: 40%.
- Choose what it covers: all eligible products, chosen collections or chosen products. Add a minimum purchase, a usage limit, one use per customer or start and end dates if you want them.
- Save. The code also shows in Shopify's own Discounts page, next to your other codes.
- Test it: add one sale item to the cart, apply the code, and check the total is the compare-at price minus 40%.
What a product already discounted by more than 40% gets: nothing extra. It keeps its own lower price, because the code never charges more than the price on the page. A product with no compare-at price gets 40% off its normal price.
How the options compare
| Edit prices by hand | Shopify's own discount | MRP Discount app | |
|---|---|---|---|
| The % comes off | Whatever price you set | The sale price | The compare-at price (MRP) |
| Same real % on every product | Yes, if every edit is right | No, products already on sale go deeper | Yes |
| Store prices change | Yes, twice: before and after | No | No |
| Work before and after | Edit every product, then undo it | A few minutes | A few minutes |
| New price shows on product pages | Yes | No, at checkout | No, at checkout |
| Cost | Free, but your time | Free, built into Shopify | $4.99 a month, 7 days free |
Your banner, ads and emails can say one simple thing: "Flat 40% off". The customer never has to know how the maths works.
Questions store owners ask
Will the flat 40% stack on top of products already on sale?
Not with MRP Discount. The code works from the original price, so a product already 30% off goes to 40% off, not 58% off. With a normal Shopify code it does stack.
What if some products are already more than 40% off?
They keep their current price. The code only lowers a price; it never raises it back to 40% off.
Can I run it on some collections only?
Yes. Choose all eligible products, chosen collections or chosen products when you make the code.
Can I make it automatic, with no code to type?
Yes. MRP Discount can also make an automatic sale that applies at checkout without a code. Shopify allows up to 25 active automatic discounts per store, counting every app.
Will the code combine with my other discounts?
No. MRP Discount codes don't stack with other discounts, so a customer can't add a second code on top of your flat offer.
Related answers
Run your next sale without touching a price.
Install it, make one code, and check it in your own checkout. The first 7 days are free.