Hi, I am wanting to create an exclusion in orders. Where if someone adds a product to cart from collection X they automatically can’t add products from collection Y (and vice versa).
Is there anyway to do this in shopfiy? Or are there any apps that allow this type of exclusions?
Not sure for app but custom solution available.
Logic is every time before ‘add to cart’ you have to check the cart items.
If there is product available in cart of collection 'X" prevent ‘Y’ collection product ‘add to cart’ click and show message.
Hi, @ABC184. If this is still something you need, I built an app that does exactly what you want: don’t allow users to check out if they have both Collection X and Collection Y products in their cart. Full disclosure: the restriction I’m about to mention is on the Pro tier ($9/month, free trial). App is called CartGate.
I see this used all the time when merchants want to separate in-stock and pre-order products, so that’s what I’ll use for the example.
If you were to use CartGate to do this, you would create a new restriction and select “Don’t let these ship together”.
I used tags for this example, but you can use whatever you want: specific products, collections, vendors, etc. Shopify now has Smart Collections, so you can have automated conditions that will automatically put products in collections based on certain conditions, making this really powerful.
Then, if you try to check out with both pre-order and in-stock products in your cart, you are blocked from checking out. One or the other is fine, but both blocks checkout.