Results 1 to 9 of 9
  1. #1
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Show admin customer signups by date?

    I would like to modify the admin index page to display new customers by date/day (total count). I can not find any postings on this and thought it would be a nice piece of information to see on a daily basis.

    For example last 5 days:

    date: 40
    date: 25
    date: 6
    date: 10
    date: 2

  2. #2
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Re: Show last 10 new customers

    Ok getting there...I think :)

    I added this code to the admin index page:
    $customers_daily = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_date_account_created = ?????????");

    The above ????? is where I'm stuck, trying to get it to display customers that signed up with today's date.

    Can anybody finish the statment above?


    Quote Originally Posted by marcopolo View Post
    I would like to modify the admin index page to display new customers by date/day (total count). I can not find any postings on this and thought it would be a nice piece of information to see on a daily basis.

    For example last 5 days:

    date: 40
    date: 25
    date: 6
    date: 10
    date: 2

  3. #3
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    help question Admin index page question

    Ok I'm try to add a new peice of info to the Admin index page, I would like to see a tally of new sign cusotmers for the day.

    I added this code to the admin index page:
    $customers_daily = $db->Execute("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_date_account_created = ?????????");

    The above ????? is where I'm stuck, trying to get it to display customers that created an account with today's date.

    Can anybody finish the statment above?

  4. #4
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Re: Admin index page question

    I double posted this, sorry...I could not find the original one.

    Still need help!

  5. #5
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Admin index page question

    This hasn't been tested but it should work.

    Code:
    $today = date("Y-m-d");
    
    $sql_customers_daily_query="select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_date_account_created like '".$today."%'";
    
    $customers_daily=$db->Execute($sql_customers_daily_query);

  6. #6
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Re: Show admin customer signups by date?

    It worked perfect...thank you sir!

  7. #7
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Re: Show admin customer signups by date?

    How would you format the below to represent the day before:
    $yesterday = date("Y-m-d") - 1;


    For example if I want to see total new customers for "yesterday"

  8. #8
    Join Date
    Jan 2008
    Posts
    1,700
    Plugin Contributions
    6

    Default Re: Show admin customer signups by date?

    Code:
    $yesterday = date("Y-m-d", time()-86400);

  9. #9
    Join Date
    May 2008
    Location
    United States
    Posts
    490
    Plugin Contributions
    1

    Default Re: Show admin customer signups by date?

    Thank you again, I appreciate your help!

 

 

Similar Threads

  1. Replies: 1
    Last Post: 28 Feb 2016, 12:05 AM
  2. Show added customer fields in admin customer area?
    By JimmyV in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Feb 2010, 10:48 PM
  3. Replies: 2
    Last Post: 28 Dec 2007, 01:07 AM
  4. 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

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