////Подсчет общей суммы заказанных товаров покупателем (by Zolinger) - START
$zapros_order_amount = db_query("select order_amount from ".ORDERS_TABLE." where customerID=".$customerID ) or die (db_error());
$total_order_amount = 0;
while ($query_zapros = db_fetch_row($zapros_order_amount))
{
$total_order_amount_customerID += $query_zapros[0];
}
$total_order_amount_customerID = show_price($total_order_amount_customerID);
$smarty->assign( "total_order_amount_customerID", $total_order_amount_customerID);
////Подсчет общей суммы заказанных товаров покупателем (by Zolinger) - END