Re: Stop discount codes being used on Sale items

Solved

Stop discount codes being used on Sale items

Snoopstar
Tourist
6 0 1

Hello,

 

Does anyone know how we are stop discount codes being used on Sale items?

 

Thank you

Accepted Solutions (2)

logangelzer
Shopify Partner
21 5 9

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.

Logan Gelzer
Founder & CEO
Logo Media
logan@logo.media

View solution in original post

logangelzer
Shopify Partner
21 5 9

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:

  • Discount Codes are usually entered at checkout unless you have an app to enter and display them in cart or you used the discount in the url which will apply the code and be seen at checkout
  • You would need the cross out pricing to be dynamic based on the discount being applied from mentioned above in which case it would also need to use the admin api to get the discount information in which case a custom app would be needed to communicate with the api and then update the frontend of your site's pricing display to reflect the applied discounts in areas such as product cards and price on your pdp pages.

I'd be happy to help you build this out if you are interested, shoot me a DM and we can discuss more. 

Logan Gelzer
Founder & CEO
Logo Media
logan@logo.media

View solution in original post

Replies 18 (18)

websensepro
Shopify Partner
1879 224 267

hi, @Snoopstar 

Please send page URl

 

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP

logangelzer
Shopify Partner
21 5 9

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.

Logan Gelzer
Founder & CEO
Logo Media
logan@logo.media
Shay
Shopify Staff (Retired)
3110 472 664

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

Snoopstar
Tourist
6 0 1

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.

 

 

 

Snoopstar
Tourist
6 0 1

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.

logangelzer
Shopify Partner
21 5 9

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:

  • Discount Codes are usually entered at checkout unless you have an app to enter and display them in cart or you used the discount in the url which will apply the code and be seen at checkout
  • You would need the cross out pricing to be dynamic based on the discount being applied from mentioned above in which case it would also need to use the admin api to get the discount information in which case a custom app would be needed to communicate with the api and then update the frontend of your site's pricing display to reflect the applied discounts in areas such as product cards and price on your pdp pages.

I'd be happy to help you build this out if you are interested, shoot me a DM and we can discuss more. 

Logan Gelzer
Founder & CEO
Logo Media
logan@logo.media
BT6
Visitor
1 0 1

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. 

LottieandLysh
Excursionist
15 0 9

Thanks BT6... this was the ideal solution to this issue for me 🙂 

Y20240619
Visitor
2 0 0

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.

HikeWare
Visitor
2 0 0

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 🙂

SKRASTS
Excursionist
33 0 5

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!

xp0515
Visitor
1 0 0

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: 

  • This collection will include all products with at least one variant that matches: Compare-at price.

Screenshot 2025-03-13 131155.png

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.

Y20240619
Visitor
2 0 0
We agree 100%, why is here noting happening?

Yves Hickenbick
AlphaSale_Kathy
Shopify Partner
21 2 3

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.

AlphaSale_Kathy_3-1743429124124.png

Let me know if you'd like to know more:) 

Try Alpha Sale & Discount Manager
- Add crossed-out product prices in bulk
- Block coupons and from applying to sale items
- Target discounts by customer tags, limit maximum discount amount, and more

HikeWare
Visitor
2 0 0

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. 

Discount-Bot
Shopify Partner
186 16 20

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:

 

topshop_0-1719404323449.png

 

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.

Founder, Discount Bot: Sitewide Sales
- Exclude hand-pick products/collections or on-sale items from discounts: Read the guide
- Increase AOV using multi-tier volume discounts
- Bulk coupon codes - for discount promotion
Nove-Marketing
Visitor
1 0 2

Why would one need to pay for these features? Oh right. Shopify

 

Juliusf
Tourist
5 0 1

I know I'm late, but for everyone who is still confused (like I was), here is what worked for me:

  1. Create a new collection (make sure it is not visible on any markets) and set the condition to "Compare Price is empty". Call this Collection something like "Not on Sale"
  2. Make sure your discounts are "Amount off Products" and not "Amount off Order".
  3. Under "Applies to", select Specific collections and select the "Not on Sale" Collection

Juliusf_0-1736935630803.png

 

Now, this discount code applies to all products that do not have a compare price.

Hope that helps.