← Blog/Discounts

How to Make a Discount Code That Only Works on One Collection in Shopify

Promoting a collection without discounting your whole store needs a scoped code. Here's how to create a collection-only discount in one message.

July 9, 2026·3 min read

Sometimes you want to push one part of your catalog — a seasonal range, a category you're overstocked on — without putting your entire store on sale. That means a discount scoped to a single collection. It's a common need, and a common place to slip up: set it wrong and the code applies everywhere.

Why scoping is easy to get wrong

Creating a collection-specific discount in Shopify means switching the discount from "all products" to specific collections, selecting the right one, and layering on dates and limits. Miss the scoping step and you've made a store-wide code by accident — discounting everything when you meant to discount one category.

Scope it correctly in one instruction

With Claude MCP Connector, you state the collection and the terms together:

Claude
Make a 15% off code TOPS15 that only works on the Tops collection, valid for two weeks.
C
Done — collection discount is live:
CodeTOPS15
Discount15% off
Applies toTops collection · 24 products
Validnext 14 days
Scoped tight: The code is rejected on anything outside the Tops collection, so the rest of your catalog stays full price.
Promote it on the Tops page →

Claude ties the code to just that collection and sets its validity window, so the discount drives interest in the category you're promoting while the rest of your catalog stays full price.

More ways to scope a discount

Limit a code to a single collection
Or scope it to specific products
Set a start and end date automatically
Choose a percentage or fixed amount off

Why targeted beats blanket

A collection-scoped discount lets you create urgency exactly where you want it without sacrificing margin everywhere else. Because setting one up correctly is now a single instruction, you can run focused category promotions as often as your calendar calls for them.

Try it free

Do this in 30 seconds with Claude.

Launching soon on the Shopify App Store. Join the early list to be first in.

Get early access →

Related articles

← Previous

How to See Which Discount Codes Were Used Most This Month in Shopify

Next →

How to Set a Sale Price on All Products in a Specific Collection in Shopify