DTC Guides

How to block certain products from a discount code on Shopify

Shastri Haines
|
September 12, 2022

This article was originally published by one of the great devs on Storetasker: Shastri Haines.

In order to exclude certain products from discount codes you will need to setup a new collection and then update your discount code conditions.

1. Create a New Collection

The new collection will only contain products that you want to discount, you could call it something like “Discountable Items” or “Non-Sale Items”.

There are a couple of ways you could setup the collection:

  • Automated Collection where Product Tag = Discountable
    You would then need to tag each product you want to be added to the collection.
  • Automated Collection where Compare at Price is Empty
    This will automatically add in products that don’t have a Compare at Price in the product data. This means that any products that aren’t on sale (with a marked down price) will be added to the collection.
2021-08-13_13-58-54.png
Collection Conditions on Shopify

2. Update Discount Codes

Now that we’ve got a new collection of items which should receive discounts, we will need to amend our existing discount codes to only be applicable to this collection.

  1. Go to the discounts page in your admin.
  2. Find the discount you want to edit & click into it
  3. Scroll down to the “Applies to” section and change it to Specific Collections.
  4. Find your newly created collection and select it.
  5. Press Save.

The discount code will now only work on items that are a part of that collection.

2021-08-13_14-04-50.png
Applying discount logic to specific collections

That's it - those are the 2 steps. If you need further help, just submit a request here and one of our devs will work with you!

7,93
15,86
23,8
31,73
39,66
47,6
55,53
63,46
71,4

This article was originally published by one of the great devs on Storetasker: Shastri Haines.

In order to exclude certain products from discount codes you will need to setup a new collection and then update your discount code conditions.

1. Create a New Collection

The new collection will only contain products that you want to discount, you could call it something like “Discountable Items” or “Non-Sale Items”.

There are a couple of ways you could setup the collection:

  • Automated Collection where Product Tag = Discountable
    You would then need to tag each product you want to be added to the collection.
  • Automated Collection where Compare at Price is Empty
    This will automatically add in products that don’t have a Compare at Price in the product data. This means that any products that aren’t on sale (with a marked down price) will be added to the collection.
2021-08-13_13-58-54.png
Collection Conditions on Shopify

2. Update Discount Codes

Now that we’ve got a new collection of items which should receive discounts, we will need to amend our existing discount codes to only be applicable to this collection.

  1. Go to the discounts page in your admin.
  2. Find the discount you want to edit & click into it
  3. Scroll down to the “Applies to” section and change it to Specific Collections.
  4. Find your newly created collection and select it.
  5. Press Save.

The discount code will now only work on items that are a part of that collection.

2021-08-13_14-04-50.png
Applying discount logic to specific collections

That's it - those are the 2 steps. If you need further help, just submit a request here and one of our devs will work with you!

Talk to an expert
Discuss the project for free
with a Storetasker Expert
From an Expert
Shastri Haines
7,93
15,86
23,8
31,73
39,66
47,6
55,53
63,46
71,4