Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default No Zones showing up when trying to create new definitions?

    I have successfully set up the zones for Canadian Taxes a couple months ago but today i wanted to add a payment zone, so I did as before and created a new zone definition, and went into the subzones and found i could not pull down a country from the drop down menu in the admin, i have attached a screenshot below.

    Is there anywhere to know why this went missing and fix it, any way to manually add zones? I am stumped and ive tried searching both these forums and google and come up with nothing.

    thanks in advance!


  2. #2
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: No Zones showing up when trying to create new definitions?

    anyone any ideas?

  3. #3
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: No Zones showing up when trying to create new definitions?

    Did you ever find an answer for this? I have the exact same issue. When I initially set the cart up in February, everything worked fine and I could set up the Zone definitions. Now mine looks exactly like the screenshot above.

    When I look under Countries and/or Zones, they all appear to be listed as they should be.
    I'll finish that project tomorrow, I've made enough mistakes today!

  4. #4
    Join Date
    Jun 2009
    Posts
    12
    Plugin Contributions
    0

    Default Re: No Zones showing up when trying to create new definitions?

    no answer yet i gave up on this problem for now and whatever i was trying to implement at the time.

  5. #5
    Join Date
    Mar 2006
    Location
    Tennessee
    Posts
    310
    Plugin Contributions
    0

    Default Re: No Zones showing up when trying to create new definitions?

    I still haven't found a 'cure' for this problem and the Default Country under Customer Details is also affected. It shows the same thing as the above screenshot (no countries in the dropdown box).

    The countries are all listed under 'Countries' and 'Zones' and best I can tell they are all in the database. It's just the dropdown box is blank.

    So...can anyone tell me how I can manually (in the files) change the default country to the UK instead the US?

    I would greatly appreciate it. :)
    I'll finish that project tomorrow, I've made enough mistakes today!

  6. #6
    Join Date
    May 2008
    Posts
    20
    Plugin Contributions
    0

    Default Re: No Zones showing up when trying to create new definitions?

    I see the problem. I'm not sure why but in the general.php file the function that gets the dropdown countries was updated. (I see the old function still there, commented out.) The updated function doesn't work when it is call for the Zone Definitions.

    Here's one way to fix it:
    In the admin > includes > functions folder open:
    general.php

    Around line 786 (I do a lot of customization so the line # might be off) I have the commented out old zen_get_countries function. (commented out means there is a /* at the start and a */ at the end).

    The function will start with:
    /* function zen_get_countries($default = '') {

    And end with:
    return $countries_array;
    } */


    Remove the comments symbols (the /* at the beginning and the */ at the end) and change the function name to zen_get_countries_by_name. So change the first line to:
    function zen_get_countries_by_name($default = '') {

    If you don't see that function it might be gone, because some module that we've installed might have said to 'replace' the function. I'm more likely to comment out the function than fully replace it. If the old function is not there let me know and I will paste the whole thing.

    One more file to change:
    In your admin folder:
    geo_zones.php

    Find this text: zen_get_countries
    and replace it with zen_get_countries_by_name

    There should only be 2 replacements. One around 377 and 385.

    Update these files to your server (remember to keep a unchanged version handy incase you make any mistakes!).

    That should do it!

    Good luck!

    Christa

 

 

Similar Threads

  1. "INSTALL" button not showing when trying to new payment modules
    By jolewin in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 16 Jan 2011, 08:52 PM
  2. Replies: 3
    Last Post: 1 Dec 2008, 08:56 PM
  3. googlefroogle error when trying to create a feed
    By marvin in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 6 Sep 2007, 03:31 AM
  4. Error Message when trying to create account
    By kimberlyeddy in forum Managing Customers and Orders
    Replies: 14
    Last Post: 5 Aug 2007, 04:44 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