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

Limit shipping to one country, allow billing to all?

Started by codeless, October 11, 2014, 00:54:31 AM

Previous topic - Next topic

codeless

Hi there,

I have a virtuemart store that limits shipping to the US. The problem is a lot of Canadians go to the US for the winter and can't make purchases because they have Canadian bulling addresses, despite having US shipping addresses.

Is there a way to allow billing to all countries but only allow shipping to the US?

Thank you for your assistance.

reinhold

I haven't checked the default shipping method, but at least in my Shipping by Rules plugins (http://open-tools.net/virtuemart-2-extensions/vm2-shipping-by-rules-plugin.html) the shipping address is used to determine shipping.

In particular, you have set the first country zone to US and use rules like

Name=Below 100€; Amount<100; Shipping=5
Name=Free Shipping above 100€; Amount>=100; Shipping=0


If the US country zone is the only one with rules, then the plugin will only offer shipping if the shipping address is in the US.

If you want a warning message in all other cases (i.e. if the shipping address is not in the US), then in the second country zone, don't select any countries (i.e. rules apply to all other countries) and use a rule

Name=Sorry, we only ship to the United States! Please select a shipping address within the US.; NoShipping

That will cause a warning message at the top, while at the same time not offering shipping.

As I said, I haven't checked the default "Shipping by Weight, ZIP and Countries" plugin. However, reading the code, it should also use the shipping address to determine shipping costs.

Best regards,
Reinhold