|
Welcome,
Guest
|
TOPIC:
UK Postcode issue with incorrect uk_subdistrict 03 Oct 2016 13:21 #1
|
VM Ordernumber Plugin
VM Downloads for Sale Plugin
VM Shipping by Rules Plugins
VM Add Buyers to Joomla Groups
Advanced Order Numbers for Magento
Basic / Advanced Order Numbers for WooCommerce
Shipping By Rules for WooCommerce
Tutorial: Automatic updates for Commercial VM and WP plugins
Tutorial: Extending VM with custom views
Tutorial: Upgrading a VM2 plugin to VM3
Advanced Ordernumbers for VirtueMart
Downloads for Sale for VirtueMart
Shipping by Rules for VirtueMart
EU Sales Reports for VirtueMart
Subscribe Buyers to AcyMailing for VirtueMart
Add Buyers to Joomla Groups for VirtueMart
VM Customers to Joomla Groups Admin Panel
Auto Parent Categories for VirtueMart
Name The Price for VirtueMart
Ordernumbers for Magento
Ordernumbers for WooCommerce
Shipping By Rules for WooCommerce
CB Usergroups Field Plugin 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!
|
Welcome,
Guest
|
|
Hi Reinhold,
VM: 3.0.16 / Joomla: 3.6.2 / Plugin Version: 6.1.6 I have a rule as follows: Name=Zone B; UK_Area=="PO"; 30<=UK_District<=41; Shipping=4.50 If user enters postcode like PO33 3RT then all is fine and rule is caught. If debugging then the following variables are populated [uk_outward] => PO33
[uk_area] => PO
[uk_district] => 33
[uk_subdistrict] =>
[uk_inward] => 3ETHowever if user enters PO33 R3T then rule is skipped. I debugged and can see the the following are all empty in this case [uk_outward] =>
[uk_area] =>
[uk_district] =>
[uk_subdistrict] =>
[uk_inward] =>Hope you can advise, perhaps I should be using [zip4] ? regards Eliot |
|
Dear Eliot,
If i understand UK postcodes correctly, "PO33 R3T" is not a correct postcode, so of course the plugin is unable to parse it into its components. If you want to allow even invalid inward parts in the postcode, then I'm afraid you'll really have to resolve to using [zip4] instead... However, in that case the plugin will not automatically convert the post code to uppercase, so you will have to do that manually. Best regards, Reinhold |