From 79d89c6f7ba5b2ac0e5364edcfcc98b8909036d1 Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 27 Jun 2014 15:18:21 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=20=EC=B5=9C=EB=8C=80?= =?UTF-8?q?=EA=B5=AC=EB=A7=A4=EC=88=98=EB=9F=89=20=EC=B2=B4=ED=81=AC=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/cartupdate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop/cartupdate.php b/shop/cartupdate.php index 069f08bb2..6ae9a87cf 100644 --- a/shop/cartupdate.php +++ b/shop/cartupdate.php @@ -112,7 +112,7 @@ else // 장바구니에 담기 // 기존에 장바구니에 담긴 상품이 있는 경우에 최대 구매수량 체크 if($it['it_buy_max_qty'] > 0) { - $sql4 = " select count(*) as cnt + $sql4 = " select sum(ct_qty) as ct_sum from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and it_id = '$it_id' @@ -120,7 +120,7 @@ else // 장바구니에 담기 and ct_status = '쇼핑' "; $row4 = sql_fetch($sql4); - if(($sum_qty + $row4['cnt']) > $it['it_buy_max_qty']) + if(($sum_qty + $row4['ct_sum']) > $it['it_buy_max_qty']) alert($it['it_name'].'의 선택옵션 개수 총합 '.number_format($it['it_buy_max_qty']).'개 이하로 주문해 주십시오.', './cart.php'); } }