News:

Support the VirtueMart project and become a member

Main Menu

Block items from being added to cart if category is different

Started by mailblade, June 11, 2020, 17:29:22 PM

Previous topic - Next topic

mailblade

Let us say I have 2 categories:


  • Dry
  • Frozen

If I add an item from the "Dry" category to the cart, I want to disable the user from adding any item belonging to the "Frozen" category until the Dry item inside the cart is removed (should also work vice versa)

Anyone done something like this before? I know it's a specific requirement but my site has dried and frozen goods categories and I don't want customers adding different category items to the same cart and order.

Milbo

My cartfilter can do that, but works per customfield (tag system). The product is currently not on the store, I think. Just write me a ticket here https://extensions.virtuemart.net/ticket
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mailblade