VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Edgar68 on March 08, 2016, 09:56:39 AM

Title: Products exclude for specific countries
Post by: Edgar68 on March 08, 2016, 09:56:39 AM
Hello,

we have got a website/shop for cheese (Holland)
Now there is a problem.

We sell several cheeses, Dutch Cheeses which are not have be cooled transported.
But also foreign cheese which have to be sent cooled.
In Holland it is not a problem. We can guarantee the temperature.
But cooled transport in the rest of the world is is a problem.

Now we know it is possible to excludes counties for buying our products.
But is it also possible to exclude products for countries?

Example
Product A could be bought in Holland but not in the rest of the world.
Product B could be bought in the whole world.

Title: Re: Products exclude for specific countries
Post by: GJC Web Design on March 08, 2016, 18:47:27 PM
perhaps collect the "fresh" cheeses into one category (hidden unpublished even) and restrict this cat just to local Dutch shipping
Title: Re: Products exclude for specific countries
Post by: Studio 42 on March 09, 2016, 00:08:49 AM
I think that you can use a vmcustom plugin. So you can prevent add to cart when country is not Dutch.
You need perhaps to add a second plugin when the user change country after in cart. I'm not sure if product plugin can check for country change in cart.
I don't think that you can full solve this with core functionnality.
Title: Re: Products exclude for specific countries
Post by: ste-jackson on August 01, 2016, 12:19:25 PM
I have the same problem as my customer wants different products for different countries, 1 thought I had on it was is there no way to unpublish and publish products based on language as with a multilanguage VM shop you can have different titles and descriptions etc is it therefore not possible to have a published product or category for english /en/ and it not to be published on german /de/ for arguements sake.
Title: Re: Products exclude for specific countries
Post by: Studio 42 on August 01, 2016, 18:32:06 PM
Hi ste-jackson,
The main developper say, it's bad to do this. But you can do it(only products) and i find myself, it's not "so" bad.
How to solve it in VM3 : http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html and the setting is prodOnlyWLang
Topic about this problem and explains : http://forum.virtuemart.net/index.php?topic=134899.0
Tool to remove language from a product and more : http://shop.st42.fr/en/products/vm-be-pro-batch-product-edit.htm (write by me)
Regards,
Patrick