PDA

View Full Version : customers stats orders



michael_s
08-15-2008, 10:01 PM
Fix error when monthly order = 0
/**in stats_customers_orders.php **/
find (166)
$tot_HT = ($tot_sale['total']-$tot_shipping['total'])*(1-($tot_taxes['total']/$tot_sale['total']));

replace with
if($tot_HT!=0){
$tot_HT = ($tot_sale['total']-$tot_shipping['total'])*(1-($tot_taxes['total']/$tot_sale['total']));
}else{
$tot_HT = 0;
}

********************************


More... (http://addons.oscommerce.com/info/2983)