News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Disable / remove products from cart when specfic country is selected?

Started by EIF, May 08, 2020, 12:12:57 PM

Previous topic - Next topic

EIF

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.

Jörgen

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
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.