All things Shopify and commerce
Hello,
Does anyone know how we are stop discount codes being used on Sale items?
Thank you
Solved! Go to the solution
This is an accepted solution.
You could create an automated collection with the condition of Compare-at price is greater than 0 which would add any products to this collection when you use the compare at field and remove them when you remove the field and you can then use this collection to exclude it from the discounts you don't want it to apply to.
This is an accepted solution.
@Snoopstar , you would most likely need some custom coding in order to achieve this because there is a few factors at play here such as:
I'd be happy to help you build this out if you are interested, shoot me a DM and we can discuss more.
hi, @Snoopstar
Please send page URl
This is an accepted solution.
You could create an automated collection with the condition of Compare-at price is greater than 0 which would add any products to this collection when you use the compare at field and remove them when you remove the field and you can then use this collection to exclude it from the discounts you don't want it to apply to.
Hi @Snoopstar
I wanted to second what @logangelzer suggested here for you. To easiest way to set this experience up would be to create a collection (this is not visible to customers, unless you want it to be) that holds only the items eligible for the discount code. When setting up the discount under Value > Applies To, choose specific collection.
Let us know if you need further assistance with that!
Shay | Social Care @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit the Shopify Help Center or the Shopify Blog
Thank you for your help, however this only works when creating new discounts.
At the moment for example- I wanted to add a 20% Black Friday Sale site wide. Ideally I would have done a strike through price on each product but if I do this then customers can use existing code as well - therefore getting multiple discounts off the same order. We have 100's of discount codes that are active at anyone time ( influencer and affliate codes mainly)
To stop this we are using discount codes for the sale (only 1 code can be used on the order) but I am trying to find a way to have the strike through price and not allow discounts on these products.
I hope that make sense.
Thank you for your help, however this only works when creating new discounts.
At the moment for example- I wanted to add a 20% Black Friday Sale site wide. Ideally I would have done a strike through price on each product but if I do this then customers can use existing code as well - therefore getting multiple discounts off the same order. We have 100's of discount codes that are active at anyone time ( influencer and affliate codes mainly)
To stop this we are using discount codes for the sale (only 1 code can be used on the order) but I am trying to find a way to have the strike through price and not allow discounts on these products.
I hope that make sense.
This is an accepted solution.
@Snoopstar , you would most likely need some custom coding in order to achieve this because there is a few factors at play here such as:
I'd be happy to help you build this out if you are interested, shoot me a DM and we can discuss more.
I was having this same issue for a new customer discount code and them stacking on top of a sale I was having with the prices discounted (strike through price). I figured out an easy way so i don't constantly have to edit the eligible collection for the new customer discount.
I added an eligible collection for the discount code. On the collection for the discount CONDITION TYPE--> COMPARE AT PRICE --> IS EMPTY
This will make any marked down products ineligible for the discount code.
Thanks BT6... this was the ideal solution to this issue for me 🙂
Is this working for you for product variants? At me at product variants this is not working. Do you offer a solution? Please contact me.
Hello, I did what I mentioned on my post and it seems like the easiest fix for me. When I run a sale, I go to my discounts, filer to active, checkbox all of the discount codes that I dont want to be used while the sale is run and click deactivate code at the top of the page.
When the sale is over I just re-active them again. A pain on the app but on desktop it takes a few minutes.
I hope this helps in some way 🙂
It doesn't seem like this works if only certain variants are on sale. It seems that if any of the variants have the full price, then customers can use the discount code... Would love to hear if you found a solution!
NO.
I'm facing the same issue. I've already created a collection called Eligible by discount with the condition compare-at-price is empty. The purpose is I don't wanna the discount code to be used on on-sale products. But when you add this condition you will see the warning:
which means if you have any variant that is on-sale, all variants of this product are eligible for this discount code.
The Shopify developers clearly know this issue by showing this warning, they just don't want to add this function, as always.
Hi @xp0515,
Shopify doesn’t have a built-in way to exclude sale items (especially specific variants) from discounts, but there are apps that let you set up discounts with extra exclusion rules.
For example, if you create discount codes via Alpha Sale, you’ll have options to prevent coupons from applying to sale products entirely, and we will count as "sale" products only the specific variants with a compare-at price.
Let me know if you'd like to know more:)
I am having the same issues. I already have so many discount codes set up and I am running sales using the compare at field, but customers are then able to use previous discount codes on top of this. Reading through the above fixes I don't think will work for me unless I were to re-create all of my discount codes again from scratch and make them a discount of specific collections rather than the whole order. I could then just tick all of the collection boxes.
To save having to do any of this, would it not work if I just simply deactivate all of the discount codes during the sale period and then re-activate them once the sale is over? In my head this would work and would surely be a quick and easy fix? I just wanted to see what other peoples thoughts were on this of if I am maybe missing something as to why this wouldn't work.
Hi @HikeWare ,
With the Discount Bot app, you can create a discount once for your whole store without having to keep modifying it when new products are added to the store or when products go in and out of sale.
For example, in your specific case, you can just select the checkbox to automatically remove any items already on sale from using a discount code on top:
You can also create storewide discounts and exclude certain products and or collections from the discounts.
If you have any further questions / clarifications, please feel to reach out to us.
Why would one need to pay for these features? Oh right. Shopify
I know I'm late, but for everyone who is still confused (like I was), here is what worked for me:
Now, this discount code applies to all products that do not have a compare price.
Hope that helps.
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025