Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Remove Local Authority Box

    Quote Originally Posted by gprit View Post
    How convulated is that???!!! Canada shows as &cID=38 whereas the code suggest 108
    I DO see UK as 222 but it doesn't seem to stack up to me....if the code says Canada is 108...(and that is wrong) then why should UK be correct??!!
    What code suggests that Canada is countries_id 108?

  2. #12
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Remove Local Authority Box

    Quote Originally Posted by gprit View Post
    How convulated is that???!!! Canada shows as &cID=38 whereas the code suggest 108
    I DO see UK as 222 but it doesn't seem to stack up to me....if the code says Canada is 108...(and that is wrong) then why should UK be correct??!!
    Well, I haven't looked into the history of the country number designations to know when 108 was correct for Canada and when it became wrong. Looking at what the code does and expects in addition to seeing the end result of that, identifying the correct value as associated to the store's database will provide the associated country to whatever that value is and it matches the value from the cID= parameter. That's also why I suggested a process to identify the value desired instead of using a note/comment.

    Unfortunately, such a comment is likely overlooked as it doesn't do anything to site operation, but does confuse those that are trying to follow it.

    Having come back around to this (as I think I saw it a few years ago), I plan to propose a PR to correct the code in:
    includes/functions/html_output.php
    Code:
       // Set some default entries at top of list:
        if (STORE_COUNTRY != SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY) $countriesAtTopOfList[] = SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
        $countriesAtTopOfList[] = STORE_COUNTRY;
        // IF YOU WANT TO ADD MORE DEFAULTS TO THE TOP OF THIS LIST, SIMPLY ENTER THEIR NUMBERS HERE.
        // Duplicate more lines as needed
        // Example: Canada is 108, so use 108 as shown:
        //$countriesAtTopOfList[] = 108;
    May add to it a way to determine the country id to provide further assistance if/when that number changes...
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #13
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,474
    Plugin Contributions
    88

    Default Re: Remove Local Authority Box

    Quote Originally Posted by mc12345678 View Post
    Well, I haven't looked into the history of the country number designations to know when 108 was correct for Canada and when it became wrong. ...
    Canada's country-id has been 38 in an as-shipped Zen Cart install as far back as 1.3.5.

  4. #14
    Join Date
    Mar 2009
    Posts
    176
    Plugin Contributions
    0

    Default Re: Remove Local Authority Box

    why not adhere to recognised numbers???

    https://www.nationsonline.org/onewor..._code_list.htm

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v151 Why my Authorize AIM no SSL authority
    By jim.wu in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 13 Dec 2013, 11:13 AM
  2. v139h can I remove the local sales tax?
    By ballyc27 in forum Currencies & Sales Taxes, VAT, GST, etc.
    Replies: 2
    Last Post: 20 Jan 2012, 01:34 AM
  3. Limiting Admin Authority
    By rtwingfield in forum Basic Configuration
    Replies: 5
    Last Post: 12 Sep 2011, 10:03 PM
  4. Admin: Website Certified by an Unknown Authority
    By Waitrose Carpark in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 26 Feb 2007, 10:05 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