Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Transfering clients

    Hi, I recently made a fresch instal with zencart 1.3.9f and put in some mods.
    Like rewards point module and dual pricing.

    Now I was wundering if its possible to transfer al my clients and their information from my old database to the new one.

    Hopefully somebody can tell me how and what to do to transfer this information.

    Best regards and thank you for any help.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Transfering clients

    Use the full database by importing it

  3. #3
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Transfering clients

    Quote Originally Posted by kobra View Post
    Use the full database by importing it
    Sure ? because i want to have the clients from two different shops (i used to work with two shops)
    And i reorganized and cleaned up the assortiment in the new shop

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Transfering clients

    That depends what you mean by customer information ...

    Assuming that you're talking about importing them from another Zen Cart database, then the customer information is spread across three tables: customers, customers_info and address_book.

    As long as these three tables are moved together, you can normally move them to your new database. You would need to remember to take account of any database table prefix (e.g. "zen_") used on the old or new database, and depending on the version of Zen Cart that your exporting from, there may be table structure changes to be applied before the imported tables work properly with your new version.

    A less technical approach is to import the whole database, as suggested by Kobra and then run the upgrade feature in Zen Cart's zc_install to apply and changes to the database structure, but that should be done before you start applying any new mods that may also make changes to the structure - otherwise you will need to re-do the database part of their installation.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  5. #5
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Transfering clients

    Ah. OK. Our posts crossed. What you're wanting to do is to merge two sets of clients.

    That's more tricky as you would need to ensure that the customer IDs across the three tables are consistent and not duplicated. So you would need to increase the IDs from the second set of customer information to something that wouldn't clash with the first set, and reset the autoincrement value on the database table.

    Are there likely to be customers in both sets of data?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  6. #6
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Transfering clients

    Quote Originally Posted by kuroi View Post
    Ah. OK. Our posts crossed. What you're wanting to do is to merge two sets of clients.

    That's more tricky as you would need to ensure that the customer IDs across the three tables are consistent and not duplicated. So you would need to increase the IDs from the second set of customer information to something that wouldn't clash with the first set, and reset the autoincrement value on the database table.

    Are there likely to be customers in both sets of data?
    Pfeww that is going to be tricky for me I think.

    The two sets of clients are in two tottaly different shops. I think i wil skip one set for minimum risc.
    Or maybe i can import them first into an excel file to give them all a new Customers ID?

    Also the only thing extra what I need to import is the information from the reward point module. Otherwise they will loose their points earned. And that will give angry faces i think

  7. #7
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Transfering clients

    Are they both Zen Cart databases? If so, which versions?
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  8. #8
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Transfering clients

    The two old shops/databasea are from
    Zen Cart 1.3.8a
    Patch: 1::
    Database Patch Level: 1.3.8
    v1.3.8 [2008-06-07 10:38:03] (Fresh Installation)
    v1.3.8 [2008-06-07 10:38:03] (Fresh Installation)

    and the new one:

    Zen Cart 1.3.9f
    Database Patch Nivo: 1.3.9f
    v1.3.9f [2010-09-24 14:08:27] (Fresh Installation)
    v1.3.9f [2010-09-24 14:08:27] (Fresh Installation)

  9. #9
    Join Date
    Jan 2004
    Posts
    66,449
    Plugin Contributions
    81

    Default Re: Transfering clients

    Beware: If you're changing customer numbers be VERY sure that you don't use numbers that already exist in your orders table for customers who've already bought in your store. Otherwise you'll let wrong customers see purchase history from other customers ... which would result in much angrier faces.
    .

    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.

  10. #10
    Join Date
    Mar 2006
    Location
    The Netherlands
    Posts
    93
    Plugin Contributions
    0

    Default Re: Transfering clients

    Quote Originally Posted by DrByte View Post
    Beware: If you're changing customer numbers be VERY sure that you don't use numbers that already exist in your orders table for customers who've already bought in your store. Otherwise you'll let wrong customers see purchase history from other customers ... which would result in much angrier faces.

    I Think i will only transfer one set of clients and not the orders only the information.

 

 

Similar Threads

  1. Transfering templete
    By beautynexus in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 7 May 2011, 11:29 PM
  2. transfering Site
    By buildingblocks in forum General Questions
    Replies: 2
    Last Post: 26 Mar 2010, 12:59 PM
  3. Transfering to new host
    By yitzchak23 in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 4 Aug 2009, 12:26 PM
  4. Transfering to a new server
    By Natural Tone in forum Installing on a Windows Server
    Replies: 1
    Last Post: 19 Jan 2009, 12:15 AM
  5. Transfering to New Server?!
    By flipjargendy in forum General Questions
    Replies: 2
    Last Post: 18 Aug 2007, 03:03 PM

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