Zen Cart Logo
Forums / General Questions / Show admin customer signups by date?

Show admin customer signups by date?

Locked

Views: 930

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
20 Feb 2009, 2:12 PM
#1
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

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

20 Feb 2009, 7:10 PM
#2
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

Re: Show admin customer signups by date?

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?

marcopolo:

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

20 Feb 2009, 7:39 PM
#3
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

Re: Show admin customer signups by date?

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?

20 Feb 2009, 7:44 PM
#4
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

Re: Show admin customer signups by date?

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

Still need help!

20 Feb 2009, 8:25 PM
#5
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Show admin customer signups by date?

This hasn't been tested but it should work.

$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);
20 Feb 2009, 8:50 PM
#6
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

Re: Show admin customer signups by date?

It worked perfect...thank you sir!

20 Feb 2009, 9:04 PM
#7
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

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"

20 Feb 2009, 9:56 PM
#8
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
1

Re: Show admin customer signups by date?

$yesterday = date("Y-m-d", time()-86400);
21 Feb 2009, 3:04 AM
#9
marcopolo avatar

marcopolo

Totally Zenned

Join Date:
May 2008
Location:
United States
Posts:
520
Plugin Contributions:
2

Re: Show admin customer signups by date?

Thank you again, I appreciate your help!