Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2007
    Posts
    11
    Plugin Contributions
    0

    Idea or Suggestion How do I delet Countries I dont ship to

    Hello All,

    I have a quick guestion. How do i delet Countries more than one at a time? Is there a file some where i can edit the Countries list all at one time? Cause I deleting them one at a time from the admin area.

    Thanks for all your Help.

  2. #2
    Join Date
    May 2005
    Location
    Western MA, USA
    Posts
    606
    Plugin Contributions
    6

    Default Re: How do I delet Countries I dont ship to

    the countries are not kept in a file, they are kept in a database.
    the easiest way to delete the countries is to use an interface like phpMyAdmin
    and "browse" the countries table and delete the once that you dont need.

  3. #3
    Join Date
    May 2009
    Posts
    6
    Plugin Contributions
    0

    Default Re: How do I delet Countries I dont ship to

    Old post but maybe it will help someone out.

    A quicker way, but to be used only if you feel comfortable.

    In my case, I only wanted US and Canada to show. You will change the process based on what you want displayed. This is ideal if you are looking to only display a few of the many 230+ countries.

    In a SQL Query window from whatever SQL manager you are using:

    DELETE FROM `zen_countries` WHERE `zen_countries`.`countries_id` > X and `zen_countries`.`countries_id` < Y

    Canada is country_id 38 and the US is country_id 223.

    So for me, I ran the query 3 times.

    #1 (This removes everything before Canada)
    DELETE FROM `zen_countries` WHERE `zen_countries`.`countries_id` > 0 and `zen_countries`.`countries_id` < 38

    #2 (This removes everything after Canada and before US)
    DELETE FROM `zen_countries` WHERE `zen_countries`.`countries_id` > 38 and `zen_countries`.`countries_id` < 223

    #3 (This removes everything after US)
    DELETE FROM `zen_countries` WHERE `zen_countries`.`countries_id` > 223

    These 3 steps will remove all countries except US & Canada.

    Now, obviously, if you wanted other countries to remain, then your steps will be different, but this will allow you to remove blocks of countries at a time instead of single click deleting them.

  4. #4
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: How do I delet Countries I dont ship to

    And all of this is obsolete information when Zen Cart v2.0 is released, because there will be an option to disable any countries you don't want to ship to, directly from within the admin interface. And, in that situation, you probably won't want all the country records to be missing from your database, so don't delete if you don't really need to.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  5. #5
    Join Date
    Feb 2009
    Posts
    34
    Plugin Contributions
    0

    Default Re: How do I delet Countries I dont ship to

    suppose using the sql ..i delete the countries from the table ...as i ship only within India .. can my customer from the US (who may want to send gifts to india ) .. enter their US address..and the shipping adress remains within India?

  6. #6
    Join Date
    Jan 2004
    Posts
    58,265
    Blog Entries
    3
    Plugin Contributions
    106

    Default Re: How do I delet Countries I dont ship to

    No. If you delete them, then all parts of the store that use them will be unable to use them.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donations always welcome: www.zen-cart.com/donate

    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.

  7. #7
    Join Date
    May 2009
    Location
    Toronto, Canada
    Posts
    70
    Plugin Contributions
    0

    Default Re: How do I delet Countries I dont ship to

    Is there an alternative if you don't want to delete the countries from the sql database... because I just want to show Canada and USA in the signup form when they register so that they know that I only ship to those 2 countries right now?
    If not... I guess I would have to write a shipping disclaimer...

    Thanks..

 

 

Similar Threads

  1. How would you handle this situation? Ship or wait?
    By s_mack in forum General Questions
    Replies: 13
    Last Post: 14 Sep 2007, 09:17 PM
  2. Color key for ship module icons?
    By Woodymon in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 1 Jun 2007, 04:32 AM
  3. Deleted Countries
    By rnet in forum General Questions
    Replies: 8
    Last Post: 8 Nov 2006, 03:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •