Block Discount Codes for specific collection

Block Discount Codes for specific collection

Nicole34
Tourist
7 0 2

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 

Replies 4 (4)
Nicole34
Tourist
7 0 2

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

tobebuilds
Shopify Partner
447 32 120

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

Founder, Regios Discounts app (4.9 stars, 54 reviews)
- Custom discounts made simple
- "Just about any discount you'll ever need"
- Built by an ex-Google software engineer

Ankit_Thakur
Shopify Partner
85 1 9

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. 

Shopify Developer/Consultant
If my suggestions are useful, please let me know by giving it a like or marking it as a solution.
And if you want to customize or develop new feature on Theme or App.
Skype:-ankit.thakur_5

JimJong
New Member
56 0 0

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.

hercollection.png

 

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