Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Customers served: X

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #1  
Old 12-13-2003, 01:41 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default Customers served: X

The title says it all, just a simple query for all pages in the cart outputing the total number of customers since the shop opened.

This is also a sales pitch, cause people are confident when they see that others have ordered from the site, thus incrementing substantially day by day.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #2  
Old 12-13-2003, 06:45 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

ok if you have 100000 customers but as bad as hit counters when your site is new or dosnt have many visitors.
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 12-13-2003, 11:05 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

That is correct, but you could also have this as an option in admin (turn on, turn off) where admin will always know how many customers have been served.

When admin considers he has a vast ammount he would obviously want to show off with his visitors.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #4  
Old 04-29-2004, 10:03 AM
 
gamenebula.com gamenebula.com is offline
 

eXpert
  
Join Date: Mar 2003
Location: Texas, USA
Posts: 227
 

Default

Sounds like a good idea
Reply With Quote
  #5  
Old 04-29-2004, 10:24 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Code:
SELECT COUNT( xcart_customers.login ) AS total_customers FROM xcart_customers

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #6  
Old 04-29-2004, 12:04 PM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Or you can count "customers served" by the number of orders placed:

Code:
SELECT COUNT(xcart_orders.orderid) AS total_orders FROM xcart_orders
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #7  
Old 04-30-2004, 06:26 AM
 
gamenebula.com gamenebula.com is offline
 

eXpert
  
Join Date: Mar 2003
Location: Texas, USA
Posts: 227
 

Default

Where would these nifty lines of code go? I don't actally see the text "Customers Served" in the cole.
Reply With Quote
  #8  
Old 04-30-2004, 06:33 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

You could add it to customer/home.php after the require "./featured_products.php"; line.

Code:
$total_customers_sql = "SELECT COUNT(xcart_orders.orderid) AS total_orders FROM xcart_orders"; $total_customers = func_query($total_customers_sql); $smarty->assign("total_customers",$total_customers[0][total_orders]);

Then anywhere in your skin1/*.tpl you can use:

Code:
{if $total_customers}{$total_customers} Customers Served.{/if}

to get the number for results
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #9  
Old 04-30-2004, 06:34 AM
 
jeremye jeremye is offline
 

Senior Member
  
Join Date: Apr 2004
Location: Philadelphia, PA
Posts: 158
 

Default

Nicely put Boomer.
__________________
Jeremy
X-Cart Gold v3.4.14 [Linux/Apache]
Heavily Modded
Reply With Quote
  #10  
Old 04-30-2004, 08:43 AM
  lyncca's Avatar 
lyncca lyncca is offline
 

X-Adept
  
Join Date: Nov 2003
Location: Fort Worth, Texas
Posts: 455
 

Default

Hmm, neato

We may have to do this on our site, our site only has a few hundred sells under its belt so far (for xcart) so not sure its enough yet.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:10 AM.

   

 
X-Cart forums © 2001-2020