Forums / Built-in Shipping and Payment Modules / No Zones showing up when trying to create new definitions?

No Zones showing up when trying to create new definitions?

Locked

Views: 1,689

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
18 Jun 2009, 9:49 PM
#1
gamestuff avatar

gamestuff

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

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!

19 Jun 2009, 4:22 PM
#2
gamestuff avatar

gamestuff

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

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

anyone any ideas?

31 Aug 2009, 3:45 PM
#3
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

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. :unsure:

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!

31 Aug 2009, 3:46 PM
#4
gamestuff avatar

gamestuff

New Zenner

Join Date:
Jun 2009
Posts:
12
Plugin Contributions:
0

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.

7 Oct 2009, 8:45 AM
#5
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

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!

21 Oct 2009, 4:01 AM
#6
christamcc avatar

christamcc

New Zenner

Join Date:
May 2008
Posts:
21
Plugin Contributions:
0

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