There was a problem with the order total summary, the field value in the table orders_total is shown the shop default value, not the foreign currency value.

That means the output, Total USD 1000.-, Total EUR 500.- was not true, in fact it is 1500.- USD.

So this new code is much smaller, and the annoying long output is now shorten to the default shop currency.

Change the whole order total summary section in admin/icludes/header.php to this:

// order total summary
if(!is_object($currencies)){include_once(DIR_WS_CL ASSES . 'currencies.php'); $currencies = new currencies();}
$sum_query = tep_db_query("select sum(ot.value) as sum from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) where ot.class = 'ot_total'");
$sum = tep_db_fetch_array($sum_query);

$today_sum_query = tep_db_query("select sum(ot.value) as sum from " . TABLE_ORDERS . " o left join " . TABLE_ORDERS_TOTAL . " ot on (o.orders_id = ot.orders_id) where to_days(o.date_purchased) = to_days(now()) and ot.class = 'ot_total'");
$today_sum = tep_db_fetch_array($today_sum_query);

echo '' . sprintf(TEXT_SUMMARY_INFO_ORDERS_TOTAL, $currencies->format($sum['sum']), $currencies->format($today_sum['sum'])) . '' . tep_image(DIR_WS_IMAGES . 'icons/summary_totals.gif', HEADER_TITLE_SUPPORT_SITE) . '';
echo '';

Thats it, have fun!

File contains only this bugfix.



More...