If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / zone definition within a country, what should be in zone_code/how is it used?

zone definition within a country, what should be in zone_code/how is it used?

Started by torvista on 11 Feb 2014, 1:41 PM · Views: 1,160

Results 1 to 7 of 7
11 Feb 2014, 1:41 PM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #1 by torvista

Hi,
after a cursory look through the files, I see the zone_code field does get referenced here and there and is sometimes compared to the zone name but I would like some comment on what should type of value should be in the code field:
a postcode, an abbreviated version of the zone name, an alternative spelling, a localized or international version of the province name?
What function does it have in Zen Cart?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Feb 2014, 3:24 PM
#2
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #2 by torvista

No one has ever used this?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Feb 2014, 3:34 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

The zone_code in the zones table is a character field ... this could be 2 characters or 3 characters or a full name ...

Have you more details on what you are trying to do with it or how you are trying to use it?

You could browse the zones table in phpMyAdmin to see what all might be stored in there ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Feb 2014, 4:15 PM
#4
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #4 by torvista

This came about as I was looking at the sql for inserting zones for a country and I realised I had no idea where this field is used and so there was no guidance/documentation as to what should be in there. Sounds like it doesn't have any purpose, just legacy code?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Feb 2014, 5:02 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #5 by ajeh

The zone_code does have a purpose ...

The zone_code is the State/Province of a Country ...

If you browse the zones table, you can see how the zones_code is used for the various countries ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

15 Feb 2014, 6:26 PM
#6
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,880
Plugin Contributions:
7

Post #6 by torvista

Thanks for replying but I interpret zone_name as the name of the province.

For zone_code there is a 2 or 3 letter abbreviation of the province with the sole exception of Spain which uses the same full province name in zone_code
Hence my query how does zone_code get used? Is it supposed to be a language-agnostic/internationalized/standardized name for that province?

Steve
github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

15 Feb 2014, 6:37 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #7 by ajeh

Countries use the ISO code standards:
http://www.iso.org/iso/country_codes/country_codes

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!