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!



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


Zip starting number, between 22 Jun 2018 21:16 #1

  • jfreak53
  • jfreak53's Avatar Topic Author
I've got the code from the examples page that shows how to compare the first number in a zip code to see if it matches:
Name=ZIP starts with numbers 123; ZIP~123; Shipping=1

But is there a way to combine that and the between numbers one from examples:
Name=Rule for several postcodes; 4000<=ZIP<=4229 OR 4300<=ZIP<=4307 OR 4500<=ZIP<=4575; Shipping=12.95

So basically the number starts with 10-20?

Zip starting number, between 10 Sep 2018 16:58 #2

Dear JFreak,
Sorry to say, but I'm not sure I completely understand what you want. If you just want to check whether the first two digits of the postal code are between 10 and 20, then you can simply use the ZIP2 variable:
Name=First two digits check; 10<=ZIP2<=20; Shipping=12.95

Best regards,
  • Page:
  • 1