VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: mailblade on June 11, 2020, 17:29:22 PM

Title: Block items from being added to cart if category is different
Post by: mailblade on June 11, 2020, 17:29:22 PM
Let us say I have 2 categories:


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.
Title: Re: Block items from being added to cart if category is different
Post by: Milbo 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
Title: Re: Block items from being added to cart if category is different
Post by: mailblade on June 16, 2020, 08:42:15 AM
Thanks for your reply, Milbo, I will create a ticket.