How to Exclude Certain Products from Discounts on Shopify
Last modified: June 25, 2026
-
Can I exclude products from discounts if they are part of a loyalty program in Shopify?
Yes, you can exclude products that are part of a loyalty program from discounts by creating collections that do not include these items. This helps maintain the exclusivity and value of loyalty program rewards, differentiating them from other promotions.
-
Can I exclude products that are already on sale from additional discounts in Shopify?
Yes. Two cleaner ways. First, set the new discount’s Combinations rule to not stack with Product discounts, so any item already on sale via a product discount is shielded. Second, build an automated “Eligible” collection with the rule “Compare at price is not greater than Price” so any product whose sale price is below its compare-at price is excluded automatically. The second method also works if your sale is implemented via Compare at price rather than a discount object.
-
Does Shopify automatically exclude gift cards from discounts?
Yes. Shopify excludes gift cards from every discount type by default, including percentage off, amount off, and free shipping. You do not need to build a workaround. If you see a discount appearing to apply to a cart with a gift card in it, the discount is touching the other line items, not the gift card itself.
-
How do I exclude a single product from a Shopify discount code?
Build an automated collection called “Discount eligible” with a condition such as Product title is not equal to [the product name] or Product tag is not equal to no-discount, then create the discount code and set Applies to specific collections, pointing it at “Discount eligible”. The excluded product cannot receive the discount because it is not in the eligible collection.
-
Can I exclude products from an automatic discount in Shopify?
Yes. When you create an automatic discount, set Customer buys to Specific collections or Specific products and only include the items that should be discounted. Anything not listed is excluded automatically. For an existing automatic discount, edit Customer buys and swap the collection for one that does not contain the products you want to skip.
-
What replaced Shopify Scripts for excluding products from discounts?
Shopify Functions. Scripts were retired on August 28, 2025 and Functions are the modern replacement. Functions run on every Shopify plan, not just Plus, and let you write JavaScript or Rust logic that inspects each line item and decides whether to apply the discount. You can build a Function in the Shopify CLI or install one through a discount app on the App Store.
Conclusion: How to Exclude Certain Products from Discounts on Shopify
The right approach to excluding products from discounts on Shopify depends on what you’re trying to achieve. For ongoing campaigns where products rotate in and out of exclusions, tag-based rules are the most flexible: add or remove a tag and the exclusion updates automatically. For one-time or seasonal promotions, organizing excluded products into a separate collection keeps things clean without touching individual product records. For complex logic (like skipping products already on sale or building conditional rules for automatic discounts), Shopify Functions give you full control without relying on third-party scripts.
If you’re using automatic discounts specifically, the Combinations setting is your first line of defense against unintended stacking. Pair it with a “sale items” collection and you cover most cases natively.
For a broader look at how discounts fit into your store’s pricing strategy, see our guide to pricing, discounts, and promotions setup.
