Dearest,
I have recently noticed a serious problem with postcodes which start with a leading zero. The system does not recognise them and gives none of the available instances.
For example the post code 00165 is not recognised (so no shipping option is given) although I had configured a proper post code range: 00001-07009
Configuration of instances:
Zone type: Generic post code
Instance: 1 (Italy without Sicily, Calabria and Sardinia)
Post codes: 00001-07009,09171-87009,89901-90009,98080-99999
Instance: 2 (Sicily, Calabria and Sardinia)
Post codes: 07010-09170,87010-89900,90010-98079
System versions:
VirtueMart 1.1.9 stable
Joomla! 1.5.24 Stable
Zone shipping version: 1.51 (2011)
The site is running for a year now but nobody noticed that until yesterday when a client called and asked for help with the shipping.
Is it a bug, or I just do not know how to configure the ranges properly?
As you can understand it is an serous issue, so any any help would be really appreciated.
Thank you very much for your kindest answers.
Latest update... I solved the issue:
In the file: postcode.php
I changed the line number: 75
73 //The zip and country that you are shipping to
74 $dest_country = $db->f("country_2_code");
75 $dest_postcode = $db->f("zip");
to:
75 $dest_postcode = (int) $db->f("zip");
Now it seem to work as it should