luiz.coutinho
Forum Replies Created
-
Forum: Plugins
In reply to: [WC - APG Weight Shipping] Canadian Post Code not WorkingI will probably buy the PRO version if you add these features!… but meanwhile, I’ll be using the following plugin:
https://www.ads-software.com/plugins/table-rate-shipping-for-woocommerce/
Their PRO version already works with alphanumeric postcodes! ??
Regards.
Hi Phil,
Thanks for the reply. I am using the free download version… I asked them if it would work with the Canadian postcode system and if the answer is yes, I will buy the full version.
If I need further help, I’ll let you know!
Regards,
Luiz
Hi Phil,
I am having problems trying to define shipping from the US to Canada because Canada uses alphanumeric post codes (similar to the UK).
I tried the Table Rate Plugin you recommended… but I don’t see the postcode option anywhere… Is it possible to use alphanumeric postcodes at all?
Many thanks!!!
Forum: Plugins
In reply to: [WC - APG Weight Shipping] Canadian Post Code not WorkingI may understand that the algorithm was designed to treat only numbers in the postcode… but the reality is that the postcode cannot be treated as pure numbers in general because if they were, the following would result in the same postcode range, and they obviously (hopefully) don’t:
004*; 04*; 4*
In addition, I believe the plugin is not aware of the system used in each and every country, which is completely acceptable, so I made an experiment: I pretended Canada switched to numeric values and entered a numeric post code. The validation does not complain about me using 331*… but nevertheless, still, the plugin does not find the match even though it is now purely numeric!
If the answer to this issue is really that the plugin cannot cope with alpha-numeric postcodes, I would say that this was at least a major design overlook. Numbers are nothing more than a special case of Alpha-numeric values… why not treat postcodes as alpha-numeric since this would work for every single country in the world.
Because of this design decision, this plugin cannot be used for postcode shipping in the following countries, among others:
Andorra Argentina Azerbaijan Barbados Bermuda British Virgin Islands Brunei Canada Cayman Islands Falkland Islands Guernsey Isle of Man Jersey Latvia Lithuania Malta Moldova Netherlands Saint Vincent and the Grenadines Slovenia Somalia Swaziland United Kingdom Venezuela
As a request for future releases, please, check why numbered postcodes do not work with Canada (and I suspect UK as well) and try to include the above countries by generalizing the treatment of post codes as generic strings.
By the way, as a side note, the expansion of an interval “nnnnn-NNNNN” into actual individual numbers is just wrong! It may result in thousands of postcodes and exceed the limits of the fields and variables being used. It actually did in my case and I had to use only “*” in my ranges. In the same way that it does not make any sense to expand something like “NNN*” it does not make sense to expand intervals. Please, adapt the logic to cope with intervals instead of turning them into real numbers. This feature would not make any sense with alpha-numeric postcodes either.
I hope these comments can be considered to improve the plugin in future releases.
Thanks!!!
Thank you for the fix. Just tested it!
All working fine now.
Great work and very quick response!