Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Adding older orders and customer list to new database

    I'm refreshing an older zen cart with a fresh new install with a new layout etc. The old database has 2000 orders and almost that many customers. I'd like to save the order and customer info to the new database. How would I do this properly?

  2. #2
    Join Date
    Jul 2013
    Posts
    57
    Plugin Contributions
    0

    Default Re: Adding older orders and customer list to new database

    Quote Originally Posted by In2Deep View Post
    I'm refreshing an older zen cart with a fresh new install with a new layout etc. The old database has 2000 orders and almost that many customers. I'd like to save the order and customer info to the new database. How would I do this properly?
    If you follow the upgrade procedures this will not be an issue. I accomplished this for my store going from 1.3.9 to 1.5.1 with a whole new theme/plugins/etc and was able to retain my customer and order info..

    This link may be helpful:
    https://www.zen-cart.com/content.php...-zen-cart-site

  3. #3
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: Adding older orders and customer list to new database

    I didn't do an upgrade though, I installed a new version of the cart and started from scratch. Would I still do it this way?

    Quote Originally Posted by k1ra View Post
    If you follow the upgrade procedures this will not be an issue. I accomplished this for my store going from 1.3.9 to 1.5.1 with a whole new theme/plugins/etc and was able to retain my customer and order info..

    This link may be helpful:
    https://www.zen-cart.com/content.php...-zen-cart-site

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding older orders and customer list to new database

    Yes. Import your entire old database. This will wipe out your new one. Then run zc_install and choose database-upgrade. This will upgrade your data to the new format. Then reconfigure anything you'd changed in your store.

    See: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    .

    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.

  5. #5
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: Adding older orders and customer list to new database

    Getting an error when I try to import the old database into phpMyAdmin:

    Error
    SQL query:

    --
    -- Database: `abc`
    --
    -- --------------------------------------------------------
    --
    -- Table structure for table `address_book`
    --
    DROP TABLE IF EXISTS `address_book` ;


    MySQL said: Documentation

    #1046 - No database selected

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Adding older orders and customer list to new database

    Quote Originally Posted by In2Deep View Post
    #1046 - No database selected
    It will only say "no database selected" if you've not selected a database to use.
    .

    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.

  7. #7
    Join Date
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: Adding older orders and customer list to new database

    My mistake. Fixed it now. When I look at the database through phpMyAdmin all of the data is there. I ran zc_install and upgraded the database from 1.3.9 to 1.5.0 and then to 1.5.1

    When I logged into my Admin, none of the new data is there. What's missing?

    Quote Originally Posted by DrByte View Post
    It will only say "no database selected" if you've not selected a database to use.

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

    Default Re: Adding older orders and customer list to new database

    Quote Originally Posted by In2Deep View Post
    When I logged into my Admin, none of the new data is there. What's missing?
    By "new" do you literally mean "new"? Or do you mean "the data I meant to copy forward from the old database"?

    The upgrade process is intended to bring all the old data forward. And then you continue by taking new orders from that point.
    So, the import I just described above brought in all the data from the old version (as of the date/time that you did the backup which you imported from), and then you upgraded it to the new format. Now you're all set to start adding new orders from today. It replaces whatever else you had in your database.
    .

    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
    Jul 2011
    Posts
    214
    Plugin Contributions
    0

    Default Re: Adding older orders and customer list to new database

    What I am trying to do is still have the past orders and customers info populated in the brand new install. The data is not showing up in the admin section.

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

    Default Re: Adding older orders and customer list to new database

    Look at the /admin/includes/configure.php in your OLD site and your NEW site, and look at the DB_PREFIX line. Does your new one have the same DB_PREFIX as the old one? If not, make it so. Then do the same in your non-admin configure.php file too.
    .

    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. v150 Importing new customers and orders since original database upgrade
    By jwduke3d in forum Upgrading to 1.5.x
    Replies: 11
    Last Post: 21 Mar 2018, 07:24 PM
  2. v139h New orders and customer not visible in the control panel
    By Bladesoul in forum Managing Customers and Orders
    Replies: 10
    Last Post: 4 Jul 2012, 06:18 PM
  3. v139h change Customer Orders Total in Database without deleting orders?
    By AvaAdorn in forum Managing Customers and Orders
    Replies: 6
    Last Post: 30 Jun 2012, 05:00 AM
  4. Customer not showing up on customer list, but can be found on database
    By roystik in forum Managing Customers and Orders
    Replies: 5
    Last Post: 24 Mar 2010, 09:42 AM
  5. not getting emails on new customer signups and orders
    By bangsters in forum General Questions
    Replies: 0
    Last Post: 1 Dec 2007, 10:39 PM

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