{$LANG.statistics.title_sales}

{if $DISPLAY_SALES}
{$LANG.common.filter}
{else}

{$LANG.statistics.notify_sales_none}

{/if}
{if isset($PRODUCT_SALES)}

{$LANG.statistics.title_popular}

{$PAGINATION_SALES}
{foreach from=$PRODUCT_SALES item=sale} {/foreach}
  {$LANG.catalogue.product_name} {$LANG.statistics.quantity_sold} {$LANG.statistics.percentage_of_total}
{$sale.key} {$sale.name} {$sale.quan} {$sale.percent}
{/if} {if isset($PRODUCT_VIEWS)}

{$LANG.statistics.title_viewed}

{$PAGINATION_VIEWS}
{foreach from=$PRODUCT_VIEWS item=view} {/foreach}
  {$LANG.catalogue.product_name} {$LANG.statistics.product_views} {$LANG.statistics.percentage_of_views}
{$view.key} {$view.name} {$view.popularity} {$view.percent}
{/if} {if isset($SEARCH_TERMS)} {/if} {if isset($BEST_CUSTOMERS)}

{$LANG.statistics.title_customers_best}

{$PAGINATION_BEST}
{foreach from=$BEST_CUSTOMERS item=customer} {/foreach}
  {$LANG.common.name} {$LANG.statistics.total_expenditure} {$LANG.statistics.percentage_of_total}
{$customer.key} {$customer.title} {$customer.first_name} {$customer.last_name} {$customer.expenditure} {$customer.percent}
{/if} {if isset($USERS_ONLINE)}

{$LANG.statistics.title_customers_active}

{if $BOTS==true} {$LANG.statistics.display_customers_only} {else} {$LANG.statistics.display_bots_and_customers} {/if}

{foreach from=$USERS_ONLINE item=user} {/foreach}
{$LANG.statistics.session_admin} {$LANG.statistics.session_user} {$LANG.statistics.session_location} {$LANG.statistics.session_started} {$LANG.statistics.session_last} {$LANG.statistics.session_length}
{if !empty($user.customer_id)} {$user.name} {else} {$user.name} {/if} {if !empty($user.ip_address)}
[{$user.ip_address}] {/if}
{$user.location} » {$user.session_start} {$user.session_last} {$user.session_length}
{/if}