Block Discount Codes for specific collection

Topic summary

Block discount codes for a specific collection without editing each code. The store has many existing and auto-generated codes (e.g., GovX, Smilie IO), making manual exclusion impractical.

Key constraint: Shopify’s native discounts can’t be blocked by collection at checkout unless on Shopify Plus. There’s no toggle on products/collections to disallow discounts.

Shopify Plus options:

  • Checkout UI Extensions: customizations that can remove or prevent discounts at checkout.
  • Discount Allocator Functions (developer preview): fine-grained control over which discounts apply in cart. May require a custom app.

Non-Plus workarounds (third‑party apps):

  • Cart Lock: blocks discounts when items from specified collections are in the cart. One post shared step-by-step setup and an image illustrating the rule configuration.
  • Checkout Guardian: blocks discounts at checkout based on products in the cart and prevents double discounts.

Outcome: No built-in solution; recommended paths are Shopify Plus features or discount‑blocking apps. Discussion remains open; a product-level/collection-level “no discounts” toggle is requested but not available.

Summarized with AI on December 10. AI used: gpt-5.

I Currently have a clothing business. I’m also creating a clothing line for an outside company that will be sold on my website. My question is how do I block all of my discount codes (current and new) from being used on either her products or her collection either or. I know how to manually do it for each current active code, but there are so many that would be a huge undertaking not to menchin I have some apps that create generic codes all the time for rewards etc..

Is there a way to alter her new collection to not allow codes to be used or when I add new products. I feel like there should be an option (button) when creating a new Collection or a New Product to not allow discount codes. Or if shopify could implement that

GovX, Smilie IO, the issue is have a lot of regular codes as well and I cant just go through everyone of them

You have some options, but both require Shopify Plus, and probably a custom app:

  1. Checkout UI extensions - I think you can remove discounts from the cart using these
  2. Discount Allocator Functions API - in developer preview, but it’ll allow you fine-grained control over which discounts apply in the cart

https://shopify.dev/docs/api/functions/reference/discounts-allocator

Best,

Tobe

Hi @Nicole34
You can try using the Checkout Guardian app, which allows you to block discount codes applied on the checkout based on the products in the cart. Plus it also allows you to block double discounts on the products.

Let me know if you find the app suitable as per your requirment.

Well, I have a good suggestion for you. You can utilize the Cart Lock https://apps.shopify.com/cart-lock app to block discount for certain collection. Follow the steps below:

  1. Open the app and click on the “Add a new rule” button.
  2. Click “Add a new condition” and select the “Discount amount” then add 1 in the “Block if more than” field.
  3. Click “Add a new condition” again and select the “Collections” then add her collections.
  4. In the “Error message” field, add an appropriate message which will be displayed in the checkout page.
  5. Click “Match conditions” ALL
  6. Save the rule.

Now if someone tries to buy items from her collection they cannot apply any discount.

Unfortunately, this can’t be fully solved with Shopify’s native discount system unless you’re on Shopify Plus.
Shopify doesn’t allow blocking discount codes by collection at checkout unless you use Checkout UI Extensions or Discount Functions, which are Plus-only features.

For non-Plus stores, the most reliable workaround is using an app that blocks discount codes when items from a specific collection are in the cart. A simple example is Cart Lock:
https://apps.shopify.com/cart-lock

It doesn’t bypass Shopify’s limitation, but it’s the easiest way to automatically block discount codes without editing every single coupon manually.