Forums / Basic Configuration / Deleted countries are still showing!

Deleted countries are still showing!

Views: 1,252

Results 1 to 14 of 14
26 Sep 2011, 2:06 AM
#1
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Deleted countries are still showing!

Hi folks,

I am a new zenner and know almost nothing about php, I am having a headache on my database connection:

My domain is: xiexianhui.com

I have a site /imex

This site should talk to DB: _imex

I double checked the configuration.php under \imex\includes, it is talking to DB _imex

The problem is in _imex I deleted most countries, I keep only USA and CANADA, I also removed all the other zones and keep only USA states and CANADA provinces. However in imex admin, I still see the complete country list and zone list.

It would be greatly appreciated if anyone can help me sort this out.

Thank you in advance.

26 Sep 2011, 3:59 PM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Deleted countries are still showing!

HOW did you remove these countries names?

20 years a Zencart User

26 Sep 2011, 5:04 PM
#3
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Deleted countries are still showing!

schoolboy:

HOW did you remove these countries names?

I go to phpMyAdmin in cPanel, and go to the database which was indicated being used in configuration.php in \includes

I open the table country and remove all but 2 countries (USA and CANADA).

I go back to zen cart admin page and go to the menu Locations and Taxes, I open countries, surprisingly there are still 238 countries there but in database there are only 2.

Where am I missing?

Thank you very much.

BTW: I am using a customized template, I don't think that is causing problem but who knows?

26 Sep 2011, 11:29 PM
#4
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: Deleted countries are still showing!

I go to phpMyAdmin in cPanel, and go to the database which was indicated being used in configuration.php in \includes

I open the table country and remove all but 2 countries (USA and CANADA).

NEVER delete things directly from the database unless instructed to. There is an admin interface to change and edit the countries - Use it.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

26 Sep 2011, 11:35 PM
#5
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Deleted countries are still showing!

Kim:

NEVER delete things directly from the database unless instructed to. There is an admin interface to change and edit the countries - Use it.

Why can't delete things directly from DB? It would be very silly if I have to delete the 238 countries one by one manually from Admin interface, right?

27 Sep 2011, 12:10 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,685
Plugin Contributions:
0

Re: Deleted countries are still showing!

... and what happened when you did it your way?

The database contains relational information - meaning things in one table will relate to things in another table - using the admin gets all the parts and pieces correctly.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

27 Sep 2011, 12:55 AM
#7
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Deleted countries are still showing!

Kim:

... and what happened when you did it your way?

The database contains relational information - meaning things in one table will relate to things in another table - using the admin gets all the parts and pieces correctly.

So you either never touch the countries or clean it one by one for the 238 records? I can't believe it.

27 Sep 2011, 12:59 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleted countries are still showing!

Just build a Zone Definition and in the DETAILS add the United States and Canada ...

Then edit your payment and/or shipping modules and add your Zone to them and now only people from those zones can Pay and/or ship ...

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!

27 Sep 2011, 1:01 AM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleted countries are still showing!

NOTE: the fact that you cleaned the countries from a database and you still see them in your Admin means you removed them from the wrong database or your Admin is looking at one database and your Catalog is looking at another database ...

Check the two files, on the server, for:
/includes/configure.php
/your_secret_admin/includes/configure.php

and ensure that both are using the same database information ...

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!

27 Sep 2011, 1:07 PM
#10
mdivk avatar

mdivk

Zen Follower

Join Date:
Sep 2011
Location:
Toronto, Ontario, Canada
Posts:
290
Plugin Contributions:
0

Re: Deleted countries are still showing!

Ajeh:

NOTE: the fact that you cleaned the countries from a database and you still see them in your Admin means you removed them from the wrong database or your Admin is looking at one database and your Catalog is looking at another database ...

Check the two files, on the server, for:
/includes/configure.php
/your_secret_admin/includes/configure.php

and ensure that both are using the same database information ...

Thank you very much. You are absolutely right, I didn't know that there is another place I need to change in /your_secret_admin/includes/configure.php

:clap::clap::clap::clap:

27 Sep 2011, 1:14 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Deleted countries are still showing!

You are most welcome ... thanks for the update that this was the cause of the problem ... :smile:

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!

30 Sep 2011, 10:56 PM
#12
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Deleted countries are still showing!

I nuked the countries from the databases on both my sites. It worked perfectly.

The best way to learn is to try stuff. But, back it up first.

1 Oct 2011, 12:18 AM
#13
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,885
Plugin Contributions:
20

Re: Deleted countries are still showing!

I nuked the countries from the databases on both my sites. It worked perfectly.For now, anyway. Anytime you mess with a database without knowing the full relational setup of the tables, you are a lawyer representing yourself.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

1 Oct 2011, 12:56 AM
#14
rescoccc avatar

rescoccc

Totally Zenned

Join Date:
May 2010
Location:
WA State
Posts:
1,700
Plugin Contributions:
2

Re: Deleted countries are still showing!

dbltoe:

For now, anyway. Anytime you mess with a database without knowing the full relational setup of the tables, you are a lawyer representing yourself.

Well, it's been 2 1/2 years on one site and a year on the other, through many changes, updates, and configurations. I think if any issues were going to surface they would have done so by now.

The best way to learn is to try stuff. But, back it up first.