Restrict adding product x if product y is in cart
-
Hi! I was wondering if it is possible to restrict the customer to add certain products depending on if there is other products in the cart that cant be mixed?
For example. I am building a website that will be selling alot of different products, but also allow customers to rent and book different machines, trailers and so on. The problem is that if someone book a trailer for example, we want that to be the only thing in the order, thus the customer HAVE to come and pick it up themselves as the shipping method.
Therefore I want to prevent customers to add a Bedsheet into a cart that already has a bookable trailer added into it. And vice versa. I want a message to sort of appear that says “Sorry, but bookable products has to be put in a seperate order” and maybe “Sorry, you can not put other products in the same cart as a bookable product. They need to be seperate”
Hope I have explained it good enough, English is not my first language.
Looking forward to some replies.
Best regards / Tobias
- The topic ‘Restrict adding product x if product y is in cart’ is closed to new replies.