diff --git a/shop/orderitemcoupon.php b/shop/orderitemcoupon.php index 595a93166..0635b3e8d 100644 --- a/shop/orderitemcoupon.php +++ b/shop/orderitemcoupon.php @@ -18,7 +18,7 @@ else $sql = " select SUM( IF(io_type = '1', io_price * ct_qty, (ct_price + io_price) * ct_qty)) as sum_price from {$g4['shop_cart_table']} - where od_id = '$od_id' + where od_id = '$cart_id' and it_id = '$it_id' "; $ct = sql_fetch($sql); $item_price = $ct['sum_price'];