Forums / Currencies & Sales Taxes, VAT, GST, etc. / Country and Zone not showing in drop down list

Country and Zone not showing in drop down list

Started by dml73 on 31 Oct 2011, 10:29 PM · Views: 3,371

Results 1 to 8 of 8
31 Oct 2011, 10:29 PM
#1
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Country and Zone not showing in drop down list

Im trying to setup a new tax zone but Admin -> Locations/Taxes -> Zone Definitions -> under the specific zone, when I try to insert a new sub zone the Country and Zone drop-down menus doesn't' contain any countries or zones. See attached image.
Did anybody have same problem? Any help is much appreciated.

8 Mar 2012, 5:39 AM
#2
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Re: Country and Zone not showing in drop down list

hmm...Im still having this problem, ...I see some other posts with similar problem.. but no solution??

8 Mar 2012, 6:30 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Country and Zone not showing in drop down list

I'm having trouble seeing any other posts "with similar problem".

As far as "the problem", that list is generated by a very simple database query which selects all countries from the countries table in the database. It will be empty if there are no countries in your countries table. So, as far as ZC core code is concerned, that's the only reason the list of countries would be empty. The only other reason would be if your website's code has been changed to do something different.

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

8 Mar 2012, 7:34 AM
#4
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Re: Country and Zone not showing in drop down list

Thanks DrByte, here are posts with a similar problem:

http://www.zen-cart.com/forum/showthread.php?t=145611&highlight=zone+definitions

http://www.zen-cart.com/forum/showthread.php?t=155423&highlight=zone+definitions

When I look in the database under the Countries table I do see that at the countries are listed. They are also listed fine in Admin->Locations/Taxes->Countries. They are only missing from the dropdown menu in Admin -> Locations/Taxes -> Zone Definitions -> under the specific zone. The States are missing too.

I checked and re-uploaded geo_zones.php so I believe that is not the problem. What other files relates to this?

8 Mar 2012, 11:51 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Country and Zone not showing in drop down list

/admin/includes/functions/*****.php

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

9 Mar 2012, 4:52 AM
#6
dml73 avatar

dml73

Zen Follower

Join Date:
Oct 2007
Posts:
416
Plugin Contributions:
0

Re: Country and Zone not showing in drop down list

Great, thanks. Finally solved the problem. My files:

functions_customers.php
and
general.php

in

/admin/includes/functions/

were for some reason modified. The call to the database in regards to the countries and state tables were commented out.

9 Mar 2012, 5:07 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Country and Zone not showing in drop down list

Thanks for confirming that the problem was indeed tampered files on your site.

I suggest you find out how+who changed them, and why.

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

19 Jul 2012, 6:51 AM
#8
canvas101 avatar

canvas101

New Zenner

Join Date:
Apr 2007
Posts:
41
Plugin Contributions:
0

Re: Country and Zone not showing in drop down list

Guys I came across this thread after having the same issue,

The issue arises due to a number of third party module that overwrite and comment out part of the code in general.php

http://www.zen-cart.com/showthread.php?129989-No-Zones-showing-up-when-trying-to-create-new-definitions

A very well written thread and extremely helpful.

Well done and Thanks!