View Single Post
  #2  
Old 10-30-2010, 02:36 PM
 
Shamun Shamun is offline
 

X-Adept
  
Join Date: Jun 2009
Location: North Carolina
Posts: 841
 

Default Re: Add "Customer Orders Totals" to Customer Profile Page

In the PHP you need to have the logic that gets the amount. It seems you have that, which is accessed by the function GetOrderCounts($CustLogin) where $CustLogin is an autopopulated variable.

If not, you will need something like this:
Code:
$TotalCustomer = GetOrderCounts($CustLogin);

Now the variable $TotalCustomer contains the amount. Next up, you need to pass that info to smarty via code similar to this:
Code:
$smarty->assign('varNameYouWantToUseInSmarty', $TotalCustomer);
__________________
- Shane Munroe
Reply With Quote