Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2007
    Posts
    47
    Plugin Contributions
    0

    Default Want to use ISO (3) codes, USA, CAN, GBR, etc

    Hi all,
    I would like to use the ISO (3) code over the ISO (2) code,
    it makes it clearer that CAN is Canada, and not CA is California..

    I have looked over the whole site, documentation, and admin screens
    and just can't see if it already exists - and then why capture the ISO (3)
    if it not being used... So I kept looking... alas..

    Is there a switch to use ISO (3) that I can't find..
    Or do I need to go into the code and just change the display to (3)..

    Along these lines I see in the Admin>Locations>Countries a field
    to be set, Address Format: 1. What is this? can this help? just can't find
    the documentation that I am sure is right there in front of me..

    Thanks...
    KevinW

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Want to use ISO (3) codes, USA, CAN, GBR, etc

    "Where" are you wanting to use the ISO(3) code?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Want to use ISO (3) codes, USA, CAN, GBR, etc

    In Step 1 of 3 - Delivery Information...
    Shipping to CA.....

    main_page=checkout_shipping

    When she is in Canada...
    So by using the ISO3 code it would be CAN.

    It was confusing for a customer -
    enough so that she emailed the shop owner to ask
    for clarification...

    Otherwise I will determine the template and put in some
    code for those countries/areas that might be confusing -
    to have a longer name (Canada in this case)...

    I am leaving town for a bit and if it were a configuration
    setting I would do that before I leave - otherwise it will
    wait for me to make some coding...

    Thanks for checking in..

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Want to use ISO (3) codes, USA, CAN, GBR, etc

    It seems you must be using the Zones shipping module.

    Edit the zones shipping module.
    Around line 120, you see this:
    Code:
          $dest_country = $order->delivery['country']['iso_code_2'];
    Add another line below it, like this:
    Code:
          $dest_country = $order->delivery['country']['iso_code_2'];
          $dest_country3 = $order->delivery['country']['iso_code_3'];
    There are 3 ways to configure the module, and thus 3 different places where you could display the 3-char code instead.
    Look for these 3 lines, and change $dest_country to $dest_country3 instead:
    Line 171:
    Code:
                    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . $show_box_weight;
    Line 185:
    Code:
                    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country;
    Line 199:
    Code:
                    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country;
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Mar 2007
    Posts
    47
    Plugin Contributions
    0

    Default Re: Want to use ISO (3) codes, USA, CAN, GBR, etc

    PERFECT - Thanks... (yes, using the zones module)
    It would have taken me some time to find the code...

    tested, put into production, and works just fine...

  6. #6
    Join Date
    Sep 2005
    Posts
    912
    Plugin Contributions
    1

    Default Re: Want to use ISO (3) codes, USA, CAN, GBR, etc

    IS there a way to change it so it shows the country name instead of the country code

 

 

Similar Threads

  1. 3 digit country ISO codes
    By damiantaylor in forum General Questions
    Replies: 3
    Last Post: 14 Aug 2010, 10:25 AM
  2. Change State to use ISO Codes
    By kwright in forum General Questions
    Replies: 3
    Last Post: 26 Feb 2009, 06:54 PM
  3. ISO Country Codes
    By hales in forum Managing Customers and Orders
    Replies: 2
    Last Post: 10 Aug 2008, 10:08 PM
  4. replace ISO codes for country codes
    By froldao in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 May 2008, 05:39 PM
  5. ISO Codes For States?
    By naitsirhc26 in forum Built-in Shipping and Payment Modules
    Replies: 0
    Last Post: 15 May 2007, 04:33 AM

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