VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: EIF on May 08, 2020, 12:12:57 PM

Title: Disable / remove products from cart when specfic country is selected?
Post by: EIF on May 08, 2020, 12:12:57 PM
We are selling products that are legal in our country, but are not in some other countries. I need a solution to prevent selling these products to those countries.

Is it possible to automaticaly delete these products from the cart (after showing message about it) when the specific country is selected?

Virtuemart 3.6.10 is being used.
Title: Re: Disable / remove products from cart when specfic country is selected?
Post by: Jörgen on May 08, 2020, 13:10:59 PM
Maybe not the best solution. Try creating a category for each country assign this to the shipment option and exclude other country categories.
This will probably need som polish since You just do not get any shipping option that if they choose from the wrong category.

Adding a shipping option that is active if none of the other are active might be able to display a word that You have products from wrong category. You could also modify the text that comes up if there are no shipping categories that match with the sam message.

Jörgen @ Kreativ Fotografi