Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.

It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Shipping rules by ZIP 05 Jan 2016 14:36 #1

  • kaotai
  • kaotai's Avatar Topic Author
Hello.
I would like to create Shipping rules by ZIP within Germany ordered by Germany Land and Germany Island (Langerooge, Helgoland, ...). I did it like this:

Name=Festland; 00000<=ZIP<18565; Shipping=5.7983
Name=Festland; 18566<=ZIP<25849; Shipping=5.7983
Name=Festland; 25850<=ZIP<25859; Shipping=5.7983
...
(Now Islands)
Name=Hiddensee; 18565; Shipping=10.084
Name=Pellworm; 25849; Shipping=10.084
Name=Hooge; 25859; Shipping=10.084
N...

But it doesn´t work.

Where is the mistake?

Regards
Karin

Shipping rules by ZIP 09 Jan 2016 17:15 #2

Dear Karin,
What exactly does not work? From looking at the rules, I suppose that the Festland rules work, but the islands don't... Is that right?

The reason for this is that in the Festland rules you explicitly check the ZIP (00000<=ZIP<18565), while in the Islands you do not check the ZIP (you only give a number, but the plugin cannot know that you actually want to check the ZIP). The correct rules for the islands would bee:
Name=Hiddensee; ZIP==18565; Shipping=10.084
Name=Pellworm; ZIP==25849; Shipping=10.084
Name=Hooge; ZIP==25859; Shipping=10.084
N...

You might even simplify the rules by putting the islands first. If I understand you correctly, the islands should get shipping costs of 10.084, but the rest of Germany (i.e. all other ZIP codes) should get 5.7983. In this case, simply handle the islands first. The rest of Germany then does not need any ZIP checks any more:
Name=Hiddensee; ZIP==18565; Shipping=10.084
Name=Pellworm; ZIP==25849; Shipping=10.084
Name=Hooge; ZIP==25859; Shipping=10.084
...
Name=Festland; Shipping=5.7983

The reason for this is that the plugin uses the first matching rule to offer shipping costs. So when the Festland rule is ever reached by the plugin, you can safely assume that the ZIP does not match any of the islands rule.

Best regards,
Reinhold

[SOLVED] Shipping rules by ZIP 10 Jan 2016 09:50 #3

  • kaotai
  • kaotai's Avatar Topic Author
Problem solved.

Shipping rules by ZIP 10 Jan 2016 09:53 #4

  • kaotai
  • kaotai's Avatar Topic Author
Hello.

Problem is solved. Thank you a lot for your help.

The solution now is the following:

I put in "rules for country zone 1" the rules for island:

Name=Hiddensee; ZIP==18565; Shipping=10.084
Name=Pellworm; ZIP==25849; Shipping=10.084
Name=Hooge; ZIP==25859; Shipping=10.084
Name=Langeness; ZIP==25863; Shipping=10.084
Name=Groede; ZIP==25869; Shipping=10.084
Name=Dunsun; ZIP==25938; Shipping=10.084
Name=Wittdün; ZIP==25946; Shipping=10.084
Name=Rantun; ZIP==25980; Shipping=10.084
Name=List; ZIP==25992; Shipping=10.084
Name=Wenningstedt; ZIP==25996; Shipping=10.084
Name=Hoernum; ZIP==25997; Shipping=10.084
Name=Kampen; ZIP==25999; Shipping=10.084
Name=Langeoog; ZIP==26465; Shipping=10.084
Name=Spiekeroog; ZIP==26474; Shipping=10.084
Name=Wangerooge; ZIP==26486; Shipping=10.084
Name=Norderney; ZIP==26548; Shipping=10.084
Name=Juist; ZIP==26571; Shipping=10.084
Name=Baltrum; ZIP==26579; Shipping=10.084
Name=Borkum; ZIP==26757; Shipping=10.084
Name=Helgoland; ZIP==27498; Shipping=10.084

In rules for country zone 2 it put

Shipping=5.7983

Both rules with TAX 19%.

And now it works perfectly!
Thanks!

Regards
Karin
  • Page:
  • 1