Re: Stop discount codes being used on Sale items

Solved

Stop discount codes being used on Sale items

Snoopstar
New Member
6 0 0

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 10 (10)

websensepro
Shopify Partner
1053 149 157

hi, @Snoopstar 

Please send page URl

 

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

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
3014 464 620

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
New Member
6 0 0

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
New Member
6 0 0

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 0

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
14 0 8

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

HikeWare
Visitor
1 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. 

topshop
Shopify Partner
70 5 9

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.

Discount Bot: Sitewide Sales - How to Exclude Products from Shopify Discounts: A Step-by-Step Guide
- Instantly create discounts for your entire product catalog with a single discount
- Exclude any products / collections / already on sale items for which the discounts should NOT apply
- Built using Shopify Functions for native performance and feel