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


UK Post Code - Can't get it working 03 Jul 2013 23:49 #1

  • Eric Dunn
  • Eric Dunn's Avatar Topic Author

I'm having problems getting the UK Post Code working. I need to charge £10 for Highlands and Islands of Scotland post codes, £4.99 for orders less than £50 and free postage for orders >=£50.

I have tried testing different postcodes in the Highland and Islands range by changing the Virtuemart user's postcode. The plugin seems to ignore all of the post code rules and just obeys the order value rule.

I tried deleting the two order value-based lines, but the plugin then doesn't detect a postal rule at all.

The code I have used is as follows:
Name="Aviemore Shipping PH22"; UK_Outward=="PH22"; Shipping=10
Name="Fort William Shipping PH33"; UK_Outward=="PH33"; Shipping=10
Name="Oban Shipping PA34"; UK_Outward=="PA34"; Shipping=10
Name="Mallaig Shipping PA41"; UK_Outward=="PA41"; Shipping=10
Name="Inverness Shipping IV1"; UK_Outward=="IV1"; Shipping=10
Name="Inverness Shipping IV2"; UK_Outward=="IV2"; Shipping=10
Name="Inverness Shipping IV3"; UK_Outward=="IV"; Shipping=10
Name="Inverness Shipping IV5"; UK_Outward=="IV5"; Shipping=10
Name="Inverness Shipping IV13"; UK_Outward=="IV13"; Shipping=10
Name="Inverness Shipping IV63"; UK_Outward=="IV63"; Shipping=10
Name="Beauly Shipping IV4"; UK_Outward=="IV4"; Shipping=10
Name="Cromarty Shipping IV11"; UK_Outward=="IV11"; Shipping=10
Name="Dingwall Shipping IV15"; UK_Outward=="IV15"; Shipping=10
Name="Alness Shipping IV17"; UK_Outward=="IV17"; Shipping=10
Name="Tain Shipping IV19"; UK_Outward=="IV19"; Shipping=10
Name="Ullapool Shipping IV26"; UK_Outward=="IV26"; Shipping=10
Name="Kyle of Lochalsh Shipping IV40"; UK_Outward=="IV40"; Shipping=10
Name="Plockton Shipping IV1"; UK_Outward=="IV1"; Shipping=10
Name="Orkney Islands Shipping KW16"; UK_Outward=="KW16"; Shipping=10
Name="Outer Hebrides Shipping HS2"; UK_Outward=="HS2"; Shipping=10
Name="Shetland Islands Shipping ZE1"; UK_Outward=="ZE1"; Shipping=10
Name="Free Shipping"; 50<=Amount; Shipping=0
Name="Standard Shipping" Amount<50; Shipping=4.99

Can you please help me fix this?



UK Post Code - Can't get it working 06 Jul 2013 20:11 #2

Dear Eric,
Sorry for the late reply (I was on vacation).
Apparently, a new error check I added in version 3.0.1 was broken, so the UK postal codes were not correctly parsed. I have fixed the problem and uploaded a new version 3.0.2.

Can you please install that new version, which should fix the problem (you can also check it working on demo.kainhofer.com).


UK Post Code - Can't get it working 07 Jul 2013 01:35 #3

  • Eric Dunn
  • Eric Dunn's Avatar Topic Author
Hi Reinhold,

I have loaded the latest version and the plugin is now working perfectly! Thank yo for your help - this is a great plugin!

Best regards,


UK Post Code - Can't get it working 09 Jul 2013 13:35 #4

  • pat78
  • pat78's Avatar
Hi excuse me if I'm replying here, but I couldn't submit a new topic, I don't know why, first of all thank you for your work.

I tested your shipping by rules plugin advanced version to manage UK shipping and it seems to work very good. But I've noticed 2 things:

1 - If the postecode is in a single letter (B, L, M, etc.) I need to use the code UK_Area, whereas with two letters the code ZIP2 works fine;

2 - For postcodes included in UK_Area rules the user need to get at least a postcode with five characters where the second and the third must be numeric, otherwise it doesn't work.

Can you confirm this is the proper functioning of the plugin or are they anomalies that will be settled with the next upgrade?

Thank you.


UK Post Code - Can't get it working 09 Jul 2013 18:24 #5

Dear Pat,
You can submit a new topic, but first-time posts by all new users need to be manually approved (otherwise the forum would be flooded with spam...). Nothing submitted is lost, it just takes a little bit to appear.

I am answering your questions on that other thread: open-tools.net/forum/shipping-by-rules-p...-some-questions.html
  • Page:
  • 1