Hi experts have a nice day, I have a project on Shopify where I'm getting struggled on how to prevent and make alert when a specific product selected for some conditions.
I made a product template where I populate list of products from collection A as a first set of selection and collection B as a second set of selection.
This is a product page where I can select 1 product from collection A and also 1 product from collection B (Each product has Add to Cart button)
The condition is collection A is required to have a least 1 product added from collection B while collection B does not required to have product from collection A.
Here is I wan't to achieve: when either products from collection A button clicked it will alert like "Need to select at least 1 product from collection B"
I'm using cart.js for the multiple products in a product template. Is this possible? or is there's a simplest way to implement this?
Thanks