Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Apr 2009
    Posts
    14
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: How to get all the countries back?

    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:

    Code:
    INSERT INTO countries ...
    So, the answer to your question is this:

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

    2. Type in:
    Code:
    TRUNCATE TABLE countries;
    and click Send. This will delete your existing countries records so duplicates aren't created when inserting the master list.

    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.

  3. #3
    Join Date
    Apr 2009
    Posts
    14
    Plugin Contributions
    0

    Default Re: How to get all the countries back?

    it worked! thanks a lot!

 

 

Similar Threads

  1. I deleted the "log in" on home pg, how to get it back?
    By georgia in forum General Questions
    Replies: 1
    Last Post: 27 Jul 2011, 12:55 AM
  2. Deleted all countries and now I cannot delete old customers
    By whatisthat456 in forum General Questions
    Replies: 12
    Last Post: 23 Feb 2010, 07:44 AM
  3. Deleted banners how do i get back?
    By dmwizzard in forum Basic Configuration
    Replies: 20
    Last Post: 13 Nov 2008, 01:51 AM
  4. How can I put back the countries I deleted from the database?
    By whitknits in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 20 Dec 2007, 03:54 PM
  5. All product listings - how can i get them to display >1 column per row?
    By widget in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 30 Sep 2007, 08:01 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