Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Dec 2009
    Posts
    33
    Plugin Contributions
    0

    red flag What is the Countries settings for USA? Deleted all countries on accident

    I went through and deleted all the countries one by one and forgot to skip over USA and now I cant remember what should be in the spots for ISO codes 2 and 3 and address format?

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: What is the Countries settings for USA? Deleted all countries on accident

    US and USA

  3. #3
    Join Date
    Dec 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: What is the Countries settings for USA? Deleted all countries on accident

    What is the address format?

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: What is the Countries settings for USA? Deleted all countries on accident

    Address format is 2.

  5. #5
    Join Date
    Dec 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: What is the Countries settings for USA? Deleted all countries on accident

    Thanks so much. Now I have a problem that since I just deleted all the other countries my customers that were from outside the USA I cant seem to delete them from my customers page in admin?

  6. #6
    Join Date
    Dec 2009
    Posts
    33
    Plugin Contributions
    0

    Default Deleted all countries and now I cannot delete old customers

    I had received a international order and then noticed I had all the countries still active. So i deleted all the countries except USA and now I go into the admin/customers and cannot delete the any customers and this shows whenever I click on of the customers.

    Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/****/public_html/admin/customers.php on line 1099

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in /home/****/public_html/admin/customers.php on line 1101

    Warning: reset() [function.reset]: Passed variable is not an array or object in /home/****/public_html/admin/includes/classes/object_info.php on line 29

    Warning: Variable passed to each() is not an array or object in /home/****/public_html/admin/includes/classes/object_info.php on line 30

  7. #7
    Join Date
    Dec 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: Cannot delete customers? Deleted all countries and now I cannot delete old custom

    The warning are shown for all previous customers but I have created a new test customer and the warning are not displayed for it. I just need to delete all my old customers manually if there is a way?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Deleted all countries and now I cannot delete old customers

    By deleting the country record, you've actually broken EVERY customer who has that country set in their address books.
    Merely adding the country back again DOES NOT fix the problem, because your new record gets a new record number, which doesn't match the numbers stored internally in all the address books.
    It would be a good lesson to have you restore your countries database table, putting things back in their good functional state. But, by the sound of your posts that's way beyond your level of knowledge with databases. I recommend you start making regular database backups, as a start.

    In the interim, the following might work, assuming you *have* added back a country record for USA. This overrides the internal tracking managed by the database, and should relink the customer addresses to the broken USA record you added:
    1. Go to Admin->Tools->Install SQL Patch
    2. Copy-and-paste the following into the big text field, and click Send.
    Code:
    update countries set countries_id=223 where countries_iso_code_3 = 'USA';
    3. Go to your customers page and check whether your US customers can be accessed properly.
    .

    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. #9
    Join Date
    Dec 2009
    Posts
    33
    Plugin Contributions
    0

    Default Re: Deleted all countries and now I cannot delete old customers

    I did what you said to do in your post and that allowed me to access the old accounts. But now the accounts that I had created after deleting all the countrys are now showing the warnings. How can I simply delete the 2 accounts as they are just test accounts I made to try to figure out if the warnings would show on new accounts.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Deleted all countries and now I cannot delete old customers

    I'm confused. First, you said you wanted to delete 2 customers. Then you said you wanted to delete all your customers. Then you said you wanted to delete all your old customers. And now you're saying you just want to delete 2 test accounts.
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. New Box Files uploaded - old deleted - now no boxes at all!!
    By Tjekija in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 17 Oct 2011, 12:52 AM
  2. Copied an attribute, now cannot edit or delete
    By ksolito in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 10 Sep 2009, 03:09 PM
  3. All customers fields in ADMIN > CUSTOMERS are empty and I can't delete them!
    By plgaudreau in forum Managing Customers and Orders
    Replies: 1
    Last Post: 26 Feb 2008, 02:08 AM
  4. quick way to delete all countries except for 2?
    By dragon designs in forum General Questions
    Replies: 2
    Last Post: 8 Sep 2007, 07:30 PM
  5. Countries and zones deleted
    By jgarabot in forum General Questions
    Replies: 6
    Last Post: 31 Dec 2006, 04:16 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR