Restrict add to cart.
-
Hi there im working on a website which has both
1. food store created by your plugin.
2. And a simple products page with all simple products not food items.So basically
If a user is on ” FOOD STORE ” page and he add food items in cart.
Than it should restrict the ” Simple product page products ”
And same with ” Simple products” in cart so restrict ” Food Store ” productsIn simple words can we have a restriction that we can not add simple products and food store items at the same time.
Note : I have seperate categories for both simple and food store products.
So if we can restrict by the parent categories ? Or maybe any other way?I tried doing this through a code i found on internet but it only dispalys error message and restrict category for simple product page. And if we open the food items on as a single product page it restrict it too.
But on the food store page where the whole menu is added it does not restrict the cart there. here is the link which restrict products by parent categories :I hope this makes sense ?? Let me know if there is a solution and sorry if this was asked before as i tried searching for but couldnt found a solution.
- The topic ‘Restrict add to cart.’ is closed to new replies.