Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Add Customer(s) through database?

    I have a client that has an excel spreadsheet of over 600 doctors offices (that will be customers) that need to be added. Rather than do them one at a time I'd like to add them through phpMyAdmin and I think I have everything set except password.

    Is there something I can insert in the table that will assign a random password?

    Alternately I could use the 'reset customer password' mod but, again, with over 600 customers to add that might be a bit daunting.

    Much Thanks!

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

    Default Re: Add Customer(s) through database?

    If you pre-generate some random passwords, then this thread may be of some help for reference: http://www.zen-cart.com/forum/showth...225#post284225
    .

    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 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Re: Add Customer(s) through database?

    Thank you for the prompt reply!

    ... so I would randomly assign passwords (I'm sure there are word generators out there that can easily put out 600 within certain criteria), run the file and it should encrypt everything?

  4. #4
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Add Customer(s) through database?

    That's the concept. The script in that post, if I recall correctly, assumes that you've already got the customer records loaded to the server, and just need to flip the unencrypted passwords into encrypted form so they can be used for real logins.

    You'll have to load the database content manually yourself, and you'll have to communicate the customers' passwords to them separately on your own as well.

    Loading the database involves 3 tables: address_book, customers, customers_info.
    More information here: http://www.zen-cart.com/wiki/index.p...er_Information
    .

    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
    Apr 2006
    Location
    Lansing, MI
    Posts
    147
    Plugin Contributions
    0

    Default Re: Add Customer(s) through database?

    ... and here I thought there was only one table in the database that needed modification.

    Thank God you guys are here! I would have screwed that up royally.

    Thank you very much for your help. I still have to get the client list (large corporation; takes forever to get anything) but I think I should be ok.

    ... if not you'll definitly hear from me.

  6. #6
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Add Customer(s) through database?

    I suggest some practice first, even while waiting on the list.
    Create some customers and see how the data gets stored in various tables and cross-referenced with record/id numbers between the tables.

    Then work on building a dataset that you can import to replicate the process.

    Then test the encryption thing.

    Then when you get your list you'll be ready to roll.
    .

    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.

 

 

Similar Threads

  1. Restore database after (unfortunately) installing "add customer fields"
    By Australian Caching in forum General Questions
    Replies: 2
    Last Post: 10 Feb 2010, 04:57 AM
  2. Changing Category Through Database
    By ryanb4614 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Aug 2009, 07:35 PM
  3. Updateing Attributes through the Database
    By edFollett in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 5 Aug 2008, 04:53 PM
  4. Populating through sql database....
    By g0d4lm1ty in forum General Questions
    Replies: 2
    Last Post: 23 Oct 2006, 08:59 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