You could customize the code in the file:
/your_secret_admin/stats_customers.php
with the code in RED:
Code:
while (!$customers->EOF) {
$rows++;
$customers_query_gift_raw = "SELECT o.orders_id, ot.value FROM " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot WHERE o.customers_id = '" . $customers->fields['customers_id'] . "' and o.orders_id = ot.orders_id and ot.class='ot_gv'";
$customers_query_gift = $db->Execute($customers_query_gift_raw);
if (strlen($rows) < 2) {
$rows = '0' . $rows;
}
?>
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<?php echo zen_href_link(FILENAME_CUSTOMERS, 'cID=' . $customers->fields['customers_id'], 'NONSSL'); ?>'">
<td class="dataTableContent" align="right"><?php echo $customers->fields['customers_id']; ?> </td>
<td class="dataTableContent"><?php echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'cID=' . $customers->fields['customers_id'], 'NONSSL') . '">' . $customers->fields['customers_firstname'] . ' ' . $customers->fields['customers_lastname'] . '</a>'; ?></td>
<td class="dataTableContent" align="right"><?php echo $currencies->format($customers->fields['ordersum']) . '<br>GV: ' . $currencies->format($customers_query_gift->fields['value']); ?> </td>
</tr>
<?php
$customers->MoveNext();
}
?>
Bookmarks