diff --git a/adm/shop_admin/orderform.php b/adm/shop_admin/orderform.php index 350bd306e..89c3c5b1a 100644 --- a/adm/shop_admin/orderform.php +++ b/adm/shop_admin/orderform.php @@ -90,18 +90,16 @@ $sql = " select ct_id, it_id, it_name, ct_qty, + ct_option, ct_price, ct_point, ct_status, ct_time, ct_point_use, ct_stock_use, - it_opt1, - it_opt2, - it_opt3, - it_opt4, - it_opt5, - it_opt6 + io_type, + io_price, + ct_num from {$g4['shop_cart_table']} where uq_id = '{$od['uq_id']}' order by ct_id "; @@ -111,7 +109,12 @@ $lines = array(); $total_order = 0; for($i=0; $row=sql_fetch_array($result); $i++) { $lines[$i] = $row; - $total_order += ($row['ct_price'] * $row['ct_qty']); + if($row['io_type']) + $total_price = $row['io_price'] * $row['ct_qty']; + else + $total_price = ($row['ct_price'] + $row['io_price']) * $row['ct_qty']; + $lines[$i]['price'] = $total_price; + $total_order += $total_price; } $pg_anchor = '