Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Zone Rates ISO codes

    Hi, in the Zone Rates shipping options, I noticed you feed it the two character ISO country codes which is fine.

    But when you click the "Estimate Shipping" button in the store it will say something like; "Shipping to FJ" or "Shipping within AU" - instead of the whole country name.

    I found the value; [FONT="Courier New"]$dest_country[/FONT] which seems to hold the iso code in the Zones.php file

    Is there a way for me to equate that to the whole country name?

    Im even happy to clone the Zone Rate module for each country we ship to so that [FONT="Courier New"]$dest_country[/FONT] would only represent one value in each case.

    Is this easy done? I have very basic php skills but thats about it.
    Donation made. Enjoy those donuts! :-)

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

    Default Re: Zone Rates ISO codes

    If you want the full name of the country, you can customize the Zone Rate zones shipping module and change each of the lines that start with:
    $shipping_method

    to read:
    Code:
                    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $order->delivery['country']['title'];
    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!

  3. #3
    Join Date
    Dec 2009
    Posts
    234
    Plugin Contributions
    0

    Default Re: Zone Rates ISO codes

    THanks Linda, you're a lifesaver as usual!
    Donation made. Enjoy those donuts! :-)

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

    Default Re: Zone Rates ISO codes

    You are most welcome ... thanks for the update that this worked for you to display the full country name in the Zone Rate zones shipping module ...
    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!

  5. #5
    Join Date
    Feb 2011
    Posts
    82
    Plugin Contributions
    0

    Default Re: Zone Rates ISO codes

    Hi Ajeh, Thank you, finally I have make all the iso code to country name ... Again, truly appreciated your support. Regards, Orkid

  6. #6
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Zone Rates ISO codes

    Hi Linda

    Although it's a long time since this thread started, I'm not sure I understand your reply of 10 May 2010. If you are talking about the /includes/modules/shipping/zones.php file, I find the following lines starting with $shipping_method:

    Line 197
    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country . $show_box_weight;

    Line 211
    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country;

    Line 225
    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $dest_country;

    Line 243
    $shipping_method = MODULE_SHIPPING_ZONES_UNDEFINED_RATE;

    Am I supposed to change ALL of them to read:

    $shipping_method = MODULE_SHIPPING_ZONES_TEXT_WAY . ' ' . $order->delivery['country']['title'];

    or do I misunderstand something?

    Thank you in advance for your assistance and kind regards.

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

    Default Re: Zone Rates ISO codes

    Yes it has been a while ...

    Have you tried this to see if you get the results desired?
    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!

  8. #8
    Join Date
    May 2010
    Location
    Athens, Greece
    Posts
    292
    Plugin Contributions
    0

    Default Re: Zone Rates ISO codes

    Well, I hadn't but I did now on a local installation.

    I placed a test order and it looks OK. For example, it says Shipping to Greece (previously GR) or Bolivia (previously BO) as I wanted.

    Should I have an easy sleep tonight?

 

 

Similar Threads

  1. Country codes -- Zone Rates
    By Akasashasha in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 5 Jun 2009, 12:10 PM
  2. replace ISO codes for country codes
    By froldao in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 May 2008, 05:39 PM
  3. Zone Rates using Zone Code & Country ISO Codes?
    By dcmall in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 8 Aug 2007, 09:08 AM
  4. Cut & Paste International ISO Codes for Zone Rate Shipping
    By shannda in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 6 Sep 2006, 07:03 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