Forums / Built-in Shipping and Payment Modules / How to get all the countries back? (I deleted them!)

How to get all the countries back? (I deleted them!)

Locked

Views: 813

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
23 Nov 2009, 3:14 AM
#1
ruriimasu avatar

ruriimasu

New Zenner

Join Date:
Apr 2009
Posts:
14
Plugin Contributions:
0

How to get all the countries back? (I deleted them!)

Hi all,
I removed all the countries from the shipping address except one. Now I would like to get back the other countries. How do I go about getting them back without manually typing the countries one by one? Is there a particular page with the information that I can re-upload? Appreciate your help in advance :hug:

23 Nov 2009, 3:19 AM
#2
drbyte avatar

drbyte

Sensei

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

Re: How to get all the countries back? (I deleted them!)

In the Zen Cart original files zip, there is a /zc_install/sql/mysql_zencart.sql file.
Inside that file are several lines that begin like this:

INSERT INTO countries ...

So, the answer to your question is this:

  1. Go to Admin->Tools->Install SQL Patch

  2. Type in: ```
    TRUNCATE TABLE countries;


3. Copy the list of INSERT INTO countries statements from the mysql_zencart.sql file to your computer's clipboard, and PASTE that into the SQL Patch window, and click Send.
Done.

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

23 Nov 2009, 3:58 AM
#3
ruriimasu avatar

ruriimasu

New Zenner

Join Date:
Apr 2009
Posts:
14
Plugin Contributions:
0

Re: How to get all the countries back? (I deleted them!)

it worked! thanks a lot! :clap: