Author Topic: Viirtuemart Shipment Methods to certain Country  (Read 720 times)

Brockney

  • Jr. Member
  • **
  • Posts: 66
  • Thanks to all who support each other!
  • VirtueMart Version: 3.0.18
Viirtuemart Shipment Methods to certain Country
« 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?
Joomla 3.6.4
Virtuemart 3.0.18

Brockney

  • Jr. Member
  • **
  • Posts: 66
  • Thanks to all who support each other!
  • VirtueMart Version: 3.0.18
Re: Viirtuemart Shipment Methods to certain Country
« Reply #1 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

Joomla 3.6.4
Virtuemart 3.0.18

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4067
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Viirtuemart Shipment Methods to certain Country
« Reply #2 on: July 13, 2016, 18:02:06 pm »
Quote
If 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.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3025
  • VirtueMart Version: 3.6.3
Re: Viirtuemart Shipment Methods to certain Country
« Reply #3 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)
regards
A

Joomla 3.9.12
php 7.2

Brockney

  • Jr. Member
  • **
  • Posts: 66
  • Thanks to all who support each other!
  • VirtueMart Version: 3.0.18
Re: Viirtuemart Shipment Methods to certain Country
« Reply #4 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?
Joomla 3.6.4
Virtuemart 3.0.18

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27595
  • Always on vacation
    • Jenkin Hill Internet
Re: Viirtuemart Shipment Methods to certain Country
« Reply #5 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.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.10.10211 on Joomla 3.9.13 PHP 7.0.33

Brockney

  • Jr. Member
  • **
  • Posts: 66
  • Thanks to all who support each other!
  • VirtueMart Version: 3.0.18
Re: Viirtuemart Shipment Methods to certain Country
« Reply #6 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! :)
Joomla 3.6.4
Virtuemart 3.0.18