Evening,
That probably came out of something or other that I was doing somewhere, the code in the modules isn't very clean, as something just weren't working at all. I'll have to check it through but one thing that did pop up was that there is a difference between the session information stored as a guest and as someone logged in so the $dest_country may very well disappear, on the other hand I could be talking rot.
I should have version 2.0-beta ready tomorrow with the UK zone systems as discussed in this thread, it's going to involve work for the installation as mentioned before, because of all of the various zones people will have installed over the years and the way mysql has handled sql patches. There's no easy way around this unfortunately, the installer will have to decide for example, if MZMT was ever installed on a 3.23 mysql server then "Belgium" may turn up as a county of England as the SQL used LAST_INSERT_ID() in onesql statement 48 times, in version 4, this is the insert id of the first sql statement processed, unfortunately in 3.23 it is the preceeding SQL argument, so Belgium gets inserted with a geographical_zone for Austria, but Austria hasn't been defined as it's one shipping zone, and so it pops up in the next shipping zone to be installed, which would be the UK.
Also if the zones available from the download sections here have been installed, then they are lacking some counties in Northern Ireland like "Antrim", someone may have noticed this on their own machine and then added it, but in that case they may have added "County Antrim". The maximum I have done is set up a set of Postal Zones (that can be expanded), Rates based on Parcel force (that can be changed), added Zones to correspond to these Postal Zones, and tried to place United Kingdom, Wales (if defined), Scotland (if defined), England (if Defined) and Northern Ireland (in the correct places).
Learning about what people could have installed, and the testing processes involved have taken more time than coding, but the documentation is taking the most time, since I've got to explain what to do in most scenarios, because it's not as simple as deleting the current zones, as that would probably cause havoc in existing customer's addresses, reports, shipping details etc....
I will report back when ready.
Thank you
Philip