From 05e6d8d0d1a6fbf34204b255e94cd8d3fae40505 Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 27 May 2013 13:08:18 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EC=88=98=EB=9F=89=EC=9D=84=20=EC=98=B5=EC=85=98=EC=9D=98=20?= =?UTF-8?q?=EC=B4=9D=20=EC=88=98=EB=9F=89=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/cartsub.inc.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/shop/cartsub.inc.php b/shop/cartsub.inc.php index c66b6d5eb..716bbe7d5 100644 --- a/shop/cartsub.inc.php +++ b/shop/cartsub.inc.php @@ -20,7 +20,7 @@ else 상품이미지 상품명 - 수량 + 총수량 판매가 소계 포인트 @@ -62,7 +62,8 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) { // 합계금액 계산 $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price, - SUM(ct_point * ct_qty) as point + SUM(ct_point * ct_qty) as point, + SUM(ct_qty) as qty from {$g4['shop_cart_table']} where it_id = '{$row['it_id']}' "; $sum = sql_fetch($sql); @@ -122,15 +123,7 @@ for ($i=0; $row=mysql_fetch_array($result); $i++) - - '; - else - echo ''.$row['ct_qty'].''; - ?> - +