VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Shipping by Rules for VirtueMart

We are currently unable to provide proper support!

For the last few months we have been very busy working on some huge, very time-consuming and time-sensitive projects, so our support was very limited and we were unable to provide proper support in our forums! We now have a huge backlog of requests from our customers, which we are trying to clear bit by bit. Unfortunately, this takes longer than we anticipated, so our response time is not yet up to par. We are trying our best to improve this situation as soon as possible.

Sorry for the inconvenience and thank you for your understanding!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Zip starting number, between

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

  • jfreak53
  • jfreak53's Avatar Topic Author
  • Offline
  • Posts: 2
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?

Please Log in or Create an account to join the conversation.

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,
Reinhold

Please Log in or Create an account to join the conversation.

  • Page:
  • 1