View Single Post
  #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