Do not add products in 'X' collection to cart if product 'Y' has not been added to cart

New Member
2 0 0


I have recently set up a build a box collection on my gift box website. I need to ensure that if someone uses the build a box option, they must have added the box (with packaging variants) to the cart, not just the individual items in the gift. Any advice on a script that would work for this? Either not allowing products in the build a box collection to be added until the box is added or not allowing checkout. Thanks!

Build a Box – Daisy Lane Gift Boxes