VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: thefbi on April 20, 2021, 11:13:57 AM

Title: Block a product for shipping in certain coutry
Post by: thefbi on April 20, 2021, 11:13:57 AM
Hello,

i try to find a solution to block a product for shipping in Europe. I have a product i cant send to Europe, but i can send in Switzerland.
So i dont want the client can order this product if the address is in France for example.

Is there a way to do this ?

VM 3.8.8 10472
Joomla 3.9.26
Title: Re: Block a product for shipping in certain coutry
Post by: pinochico on April 20, 2021, 11:21:31 AM
Setup shipping plugins only for country Switzerland and without category (new category "Don't Sale outside Swiss" with this product)
For other countries setup only info in cart - we don't sell this product outside Swiss.

basic idea is:
- put this product in new category
- exclude this category from shipping plugins
Title: Re: Block a product for shipping in certain coutry
Post by: AH on April 20, 2021, 12:26:52 PM
Pretty much what Pinochio says

Setup a a dummy - "swiss only category"

Add this category to the item you want to only ship to switzerland

Now adjust your shipping setup:-

Use this category as a blocking category for all non swiss shipping options

You can ignore this in the swiss shipping option
Title: Re: Block a product for shipping in certain coutry
Post by: thefbi on April 20, 2021, 13:30:42 PM
Hello,

ok, thank you for your answers.

I have to see with alatak because i use HER plugin Pro Shipment, and i dont have such option to exclude categorie. Or i dont know where.
So i will post it here if i have a solution.
Title: Re: Block a product for shipping in certain coutry
Post by: GJC Web Design on April 20, 2021, 15:10:25 PM
QuoteI have to see with alatak because i use his plugin Pro Shipment

I have to see with alatak because i use HER plugin Pro Shipment
Title: Re: Block a product for shipping in certain coutry
Post by: thefbi on April 20, 2021, 16:44:56 PM
Ho sorry, my English is not very good.
And if i translate the phrase "Je doit voir avec alatak car j'utilise son plugin Pro shipment" with Deepl for example, it is : "I have to check with alatak because i use his plugin Pro shipment"

Regards.
Title: Re: Block a product for shipping in certain coutry
Post by: jenkinhill on April 20, 2021, 18:33:40 PM
"son plugin Pro shipment"   or   "sa plugin Pro shipment"
Title: Re: Block a product for shipping in certain coutry
Post by: thefbi on April 20, 2021, 18:59:39 PM
in French, we match the word "son" or "sa" with the name. If the name is masculine, then it will be "son". If the name is feminine, it is "sa".

Example "sa" motorbike
Example "son" horse

It doesn't matter if it's a man or a woman. So it is not the same logic :)

So here, the word "plugin" is masculine.
Title: Re: Block a product for shipping in certain coutry
Post by: jenkinhill on April 21, 2021, 11:29:53 AM
Thanks for that. It is well more than 50 years since I studied French!
Title: Re: Block a product for shipping in certain coutry
Post by: thefbi on April 21, 2021, 12:45:17 PM
Quote from: jenkinhill on April 21, 2021, 11:29:53 AM
Thanks for that. It is well more than 50 years since I studied French!

You are welcome ! And me, 20 years for English :)