Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Join Date
    Jul 2005
    Posts
    46
    Plugin Contributions
    0

    Default Re: Exporting my customer database to CSV.

    Bumping this... to see if anyone has any ideas on how to pull the addresses for only customers who ordered in the past year.

  2. #12
    Join Date
    Aug 2006
    Location
    Boston MA
    Posts
    19
    Plugin Contributions
    0

    Default Re: Exporting my customer database to CSV.

    This is a great query, but I don't think my client is saavy enough to work in PHPadmin. He's just looking for a way to export current order customer shipping info to an excel file. Will keep looking! Thanks to a wonderful team

  3. #13

    Default Re: Exporting my customer database to CSV.

    Dr Byte, where do you run this code? we are also wanting to backup customs to CSV File for mail merging letters to customers.

    Craig


    Quote Originally Posted by DrByte View Post
    how's this:
    Code:
    SELECT 
    c.customers_firstname as FirstName,
    c.customers_lastname as LastName,
    c.customers_email_address as Email,
    ab.entry_company as Company,
    ab.entry_street_address as Address1,
    ab.entry_suburb as Address2,
    ab.entry_postcode as ZipPostalCode,
    ab.entry_city as City,
    z.zone_name as State,
    ab.entry_state as Province,
    co.countries_name as Country,
    c.customers_telephone as Telephone
    FROM
    customers c,
    address_book ab
    LEFT JOIN zones z ON (ab.entry_zone_id = z.zone_id
    and ab.entry_country_id = z.zone_country_id)
    left join countries co ON ab.entry_country_id = co.countries_id
    WHERE
    ab.customers_id=c.customers_id
    and ab.address_book_id = c.customers_default_address_id;

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

    Default Re: Exporting my customer database to CSV.

    The most common way would be to run it in phpMyAdmin and then export the results.
    .

    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. #15
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: Exporting my customer database to CSV.

    Can this be worked in reverse to ADD customers to database?

    I've seen the add customers thru admin mod, but that is a one-by-one process and I'd like to be able to add a list of 200 or more in one fell swoop. (Go ahead ~ call me lazy )

    Tina

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

    Default Re: Exporting my customer database to CSV.

    Quote Originally Posted by charmedbytina2 View Post
    Can this be worked in reverse to ADD customers to database?

    I've seen the add customers thru admin mod, but that is a one-by-one process and I'd like to be able to add a list of 200 or more in one fell swoop. (Go ahead ~ call me lazy )

    Tina
    Somewhat, yes. But that's an entirely different topic, since it involves inserting records into multiple tables, which need to be kept in sync and need to link each others' record numbers to each other. And, if you don't supply *all* the required data, your customers will have serious problems doing checkout.
    See the wiki for database tables which store customer data.
    .

    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. #17
    Join Date
    Mar 2007
    Location
    AZ
    Posts
    1,911
    Plugin Contributions
    2

    Default Re: Exporting my customer database to CSV.

    Thanks for the info - I'm over to wiki now!~

    Tina

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. v150 Exporting customer accounts & products to CSV
    By meljen in forum General Questions
    Replies: 5
    Last Post: 4 Jun 2014, 07:41 AM
  2. Exporting all types of store data in CSV format?
    By dutchy in forum General Questions
    Replies: 6
    Last Post: 30 Apr 2011, 02:33 PM
  3. Exporting orders in a specific CSV format
    By intref in forum Managing Customers and Orders
    Replies: 3
    Last Post: 9 Nov 2007, 11:18 PM
  4. Exporting Customer Database and accessing passwords
    By Orders in forum Managing Customers and Orders
    Replies: 6
    Last Post: 21 Aug 2006, 10:04 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