How to limit the max number of products a discount can apply to in a single session

We want to set-up a promotion where we give free T-shirts coupons to Boy Scout troops. One coupon/discount per user. Additional T-shirts need to be charged at full price, but their choice of T-shirt are all in the same Category/Collection

In order to do that I followed this procedure:

  1. I set up an automatic “Free Shipping” Discount
  2. I then created one 100% Off discount for our “Apparel” category which connected to the free shipping

The discount works well, just as we envisioned. However, then I tried to go buy another shirt. In our promotion this shirt should be full price and regular shipping fee, but I discovered that instead any additional product I place in the cart (from that category/collection) gets the same Discount applied.

If we gave out a link with a “Free T-shirt” coupon, recipients would be able to order our entire inventory, under that collection, for free. That’s obviously not what we want, but while there is a “Minimum Number” of products to activate the discount, there is no maximum number that deactivates the discount, which seems silly to me.

I found another post referencing this issue here: https://community.shopify.com/c/customers-discounts-and-orders/maximum-number-of-items-a-discount-can-be-applied-to

But there was no resolution, just hints that it’s possible, as long as I learn the Shopify API, figure out which version to use and possibly learn a couple of JS based scripts. That’s not going to happen by the middle of next week.

It may work if someone already wrote the script and I can just modify it for our purposes, but otherwise it’s too much for us.

I searched further, I also posted on Reddit, but for starters this is a pretty obscure request, so I am possibly missing scores of posts that may contain a solution.

Any ideas? Is there a repository of scripts I may be able to use? Is there someone we can hire to write the script?

Thank you.

2 Likes

Also looking for this

1 Like