From a818a52fe1376abc9008c8488535ec53ac55f954 Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 31 Dec 2014 10:37:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=94=EB=A1=9C=EA=B5=AC=EB=A7=A4=20?= =?UTF-8?q?=EC=83=81=ED=92=88=20=EC=82=AD=EC=A0=9C=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/cartupdate.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shop/cartupdate.php b/shop/cartupdate.php index c2c2c46dd..0ad974e54 100644 --- a/shop/cartupdate.php +++ b/shop/cartupdate.php @@ -138,6 +138,10 @@ else // 장바구니에 담기 if(!$it['it_id']) alert('상품정보가 존재하지 않습니다.'); + // 바로구매에 있던 장바구니 자료를 지운다. + if($i == 0 && $sw_direct) + sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false); + // 최소, 최대 수량 체크 if($it['it_buy_min_qty'] || $it['it_buy_max_qty']) { $sum_qty = 0; @@ -183,10 +187,6 @@ else // 장바구니에 담기 $lst_count++; } - // 바로구매에 있던 장바구니 자료를 지운다. - if($i == 0 && $sw_direct) - sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false); - //-------------------------------------------------------- // 재고 검사, 바로구매일 때만 체크 //--------------------------------------------------------