Author Topic: Block items from being added to cart if category is different  (Read 253 times)

mailblade

  • Jr. Member
  • **
  • Posts: 111
  • A beginner
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Block items from being added to cart if category is different
« Reply #1 on: June 15, 2020, 14:06:41 pm »
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
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

mailblade

  • Jr. Member
  • **
  • Posts: 111
  • A beginner
Re: Block items from being added to cart if category is different
« Reply #2 on: June 16, 2020, 08:42:15 am »
Thanks for your reply, Milbo, I will create a ticket.