VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: Brockney on July 13, 2016, 16:14:10 PM

Title: Viirtuemart Shipment Methods to certain Country
Post by: Brockney on July 13, 2016, 16:14:10 PM
Hi there,

I am using Virtuemart 3.0.14 and Joomla 3.5.1

When setting up the shipping methods in Virtuemart I followed the instructions given here: https://docs.virtuemart.net/manual/shop-menu/edit-shipment-method.html

The shipping method is displayed.

If I change the 'Available Countries' to United Kingdom the shipment method disappears from the cart page.

If I remove that option it reappears.

I also tried changing it to the United States and still encountered the same.

Does anybody know why this is?
Title: Re: Viirtuemart Shipment Methods to certain Country
Post by: Brockney on July 13, 2016, 16:44:10 PM
Possible solution:

CONFIGURATION -> COUNTRIES -> UNPUBLISH THOSE NOT SHIPPED TO

Hopefully this works - if this is incorrect please let me know

Cheers

Title: Re: Viirtuemart Shipment Methods to certain Country
Post by: Studio 42 on July 13, 2016, 18:02:06 PM
QuoteIf I change the 'Available Countries' to United Kingdom the shipment method disappears from the cart page.
In this case the user have to fill the country.
A solution is to fill the country ID in the user fields. This should solve your problem.
Title: Re: Viirtuemart Shipment Methods to certain Country
Post by: AH on July 13, 2016, 19:15:03 PM
as 42 said

Set the country shopper-field to a default value

admin->VM->configuration->shopper fields

virtuemart_country_id

Default value = 222 

(UK)
Title: Re: Viirtuemart Shipment Methods to certain Country
Post by: Brockney on July 13, 2016, 23:05:10 PM
Thank you both so much, the Shopper Fields is a very useful section which I definitely needed to find! There are a couple of small changes I should be able to make so thanks :)

I see the logic in setting a specific country to default and this did exactly as expected. However I am looking to set it such that the United Kingdom is the only country we can ship to (this is not a permanent thing if you wish to order Vapes from us and don't live here lol!)

The method I mentioned earlier does have the desired effect but is there any faster way (similar to the default country) that can be used?
Title: Re: Viirtuemart Shipment Methods to certain Country
Post by: jenkinhill on July 13, 2016, 23:44:58 PM
Like http://forum.virtuemart.net/index.php?topic=134847.msg468760#msg468760

As for a quick way of enabling just one country, first set "Backend default items per list view" in VM Configuration/Templates/Set the pagination sequence for the List Box  to 300

Then go to countries, where all will be shown. Select all and unpublish. Then re-publish the one(s) you want.
Title: Re: Viirtuemart Shipment Methods to certain Country
Post by: Brockney on July 14, 2016, 00:10:46 AM
Brilliant, the pagination makes that a whole lot more straightforward, it means I can unpublish all at once.

Thank you so much! :)