Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Exporting Customers with orders

    I am trying to export a customer list via phpmyadmin. I need to emails and names of customers that have ordered recently.

    I can export zen_customer and it gives me all I need beside telling me if they have ever placed an order or not. Where is the order count stored for a customer? In zen admin I can see the customers number of logins and number of orders. Where is it stored? I would think I can merge the two tables somehow to create a list like I need.

    Thanks
    Live and learn... the Zen way.

  2. #2
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Exporting Customers with orders

    Have you tried email address exporter? There are a few built-in filters and adding a filter into the proper database table is fairly straighforward and people here (smarter than me) are good at helping with that
    We added one for customers whose order total dollar value >$10 and dormant over 3 months and subscribed
    There's one for active customers who have spent money within the past 3 months and subscribed

    https://www.zen-cart.com/downloads.php?do=file&id=6
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

  3. #3
    Join Date
    Dec 2004
    Posts
    1,031
    Plugin Contributions
    0

    Default Re: Exporting Customers with orders

    OK thanks. This add on worked out fine. I had to edit the sql to get the 24 month range but was no problem.
    Live and learn... the Zen way.

  4. #4
    Join Date
    Aug 2009
    Location
    North Idaho, USA
    Posts
    2,008
    Plugin Contributions
    1

    Default Re: Exporting Customers with orders

    I'm assuming you found the "query_builder" table where you can edit or add new filters

    One we added and use frequently to sort the freeloaders from the customers who spend money.
    Code:
    select o.date_purchased, c.customers_email_address, c.customers_lastname, c.customers_firstname from TABLE_CUSTOMERS c, TABLE_ORDERS o WHERE c.customers_id = o.customers_id AND
    o.order_total > 10 AND
    c.customers_newsletter = 1 GROUP BY c.customers_email_address HAVING max(o.date_purchased) <= subdate(now(),INTERVAL 3 MONTH) ORDER BY c.customers_lastname, c.customers_firstname ASC
    Rick
    RixStix (dot) com
    aka: ChainWeavers (dot) com

 

 

Similar Threads

  1. Trouble with files uploaded with customers' orders
    By Paradave in forum General Questions
    Replies: 3
    Last Post: 14 Jul 2011, 03:12 PM
  2. Importing and exporting: Orders, reviews, and customers list
    By shortysclimbin in forum General Questions
    Replies: 2
    Last Post: 20 Jun 2011, 06:29 PM
  3. exporting customers details
    By alpertheidiot in forum General Questions
    Replies: 2
    Last Post: 21 Dec 2009, 11:59 PM
  4. exporting orders
    By mickyoung in forum Managing Customers and Orders
    Replies: 1
    Last Post: 10 Nov 2008, 12:12 AM
  5. Exporting Orders
    By farrahscreations in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Sep 2008, 04:40 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