Shipping by Rules for VirtueMart
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,

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

  • Page:
  • 1

VM - Shopping cart


Cart empty

Login Formular