Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping By Rules for WooCommerce

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:

UK postcodes Q2 11 Feb 2016 08:42 #1

  • samstudio
  • samstudio's Avatar Topic Author
Thanks for reply
open-tools.net/forum/shipping-by-rules-f...ed-uk-postcodes.html

I tested by simple record, it's ok.

I would like to ask few questions about this plug in. Firstly, how your system recognises post codes? For example as you are aware there are different types of post codes in London / UK: SE1 2ar = £20; SE12 5lr = £10 - if customer enters information post code without space which figure will he receive? For example: SE12AR - will it show £20 or £10 or "Invalid post code"? Thanks

UK postcodes Q2 11 Feb 2016 17:29 #2

Dear Samstudio,
The plugin converts the postcode to uppercase and then uses the following regular expression to extract the individual parts of the UK postal code:
'/^\s*(([A-Z]{1,2})(\d{1,2})([A-Z]?)|[A-Z]{4}|GIR)\s*(\d[A-Z]{2})\s*$/'

This means that the space between the inward and the outward part is optional. However, inside the inward or outward part, no spaces are allowed. In short, the plugin checks for the form "A(A)0(0)(A)( )0AA", where A means a letter, 0 means a digit and (A) indicates the letter is optional.

Best regards,
Reinhold

[SOLVED] UK postcodes Q2 29 Feb 2016 08:01 #3

  • samstudio
  • samstudio's Avatar Topic Author
Problem solved.
  • Page:
  • 1