How-to: Exclude products on sale from Shopify discount codes

Shopify does not directly allow excluding products from Discount Codes. Instead, it allows for Discount Codes to only apply to a collection.
Using Disco, you can dynamically add or remove products from that collection when a sale starts, so they effectively are excluded from a Discount Code.

In broad steps you must:

  1. Deactivate your Disco sales.
  2. Create a collection for all products not on sale (set it to include products with tag "not-on-sale").
  3. Tag all products "not-on-sale".
  4. Modify your discount codes to only apply to the "not-on-sale"-collection.
  5. Modify your Disco sales to remove tag "not-on-sale" from products when the sale starts (and add the tag again when sale ends).

The guide below shows you how to do exactly that, resulting in excluding Disco discounted products from your discount codes.

Repeat steps 14-18 for each discount code in your store.


22 STEPS

NB: Ensure that you have deactivated all sales in Disco. If not, go ahead and deactivate them - you can activate them again afterwards.

1. The first step is to open All products and check the checkbox to select all.

Step 1 image

2. Click Select all 50+ products in your store.

Step 2 image

3. Click More actions.

Step 3 image

4. Scroll down and click Add tags.

Step 4 image

5. Enter tag (e.g. not-on-sale) and click Save

Step 5 image

6. Click Collections

Step 6 image

7. Click Create collection

Step 7 image

8. Enter a Title.

Step 8 image

9. Click Automated

Step 9 image

10. Click Condition 1 value

Step 10 image

11. Enter not-on-sale

Step 11 image

12. Click Save

Step 12 image

13. Click Discounts

Step 13 image

14. Create or modify a Discount code

Step 14 image

15. Click Specific collections

Step 15 image

16. Select the collection you just created.

Step 16 image

17. Click Add

Step 17 image

18. Scroll down and click Save discount code

Step 18 image

19. Go to Disco and create a new sale.

Step 19 image

20. Scroll down and check Remove tag from products on sale.

Step 20 image

21. Enter the tag you added previously (e.g. not-on-sale).

Step 21 image

22. Enter remaining information about the sale and press Create sale. 

Now, the products in the Disco sale are removed from the collection and effectively removed from the discount code you created. When the Disco sale ends, the products will be added back into the collection.