Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,590
    Plugin Contributions
    30

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

    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: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  2. #2
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,590
    Plugin Contributions
    30

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

    No one has ever used this?
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    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: v1.5.5]
    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!

  4. #4
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,590
    Plugin Contributions
    30

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

    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: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    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: v1.5.5]
    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!

  6. #6
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,590
    Plugin Contributions
    30

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

    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: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

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

    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: v1.5.5]
    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!

 

 

Similar Threads

  1. What is Zend Framwork? What it's used for and how?
    By Syed Raza Mehdi in forum General Questions
    Replies: 1
    Last Post: 18 Dec 2013, 08:45 AM
  2. v151 Pre-defined shipping rates within one country - how?
    By Malek in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 8 May 2013, 02:35 AM
  3. how do i set up my country and zone?
    By neilclover in forum General Questions
    Replies: 0
    Last Post: 25 Aug 2012, 02:01 AM
  4. Duplicate zone definition
    By ellivir in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 22 Feb 2009, 09:02 PM
  5. How to setup sub-urbs in zone definition
    By karanj in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 0
    Last Post: 23 Dec 2007, 08:58 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR