From 329ce1ed5a27f6d7f99e1e788c52655e6da705bf Mon Sep 17 00:00:00 2001 From: chicpro Date: Wed, 21 May 2014 15:42:08 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EB=8B=B4=EA=B8=B0=20=EC=9E=AC=EA=B3=A0=20=EC=B2=B4=ED=81=AC?= =?UTF-8?q?=EB=A5=BC=20=EA=B8=B0=EC=A1=B4=20=EC=9E=90=EB=A3=8C=20=EC=82=AD?= =?UTF-8?q?=EC=A0=9C=20=ED=9B=84=20=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=9C=84?= =?UTF-8?q?=EC=B9=98=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/cartupdate.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/shop/cartupdate.php b/shop/cartupdate.php index a923b0bec..971b7f80b 100644 --- a/shop/cartupdate.php +++ b/shop/cartupdate.php @@ -141,6 +141,14 @@ else // 장바구니에 담기 $lst_count++; } + // 바로구매에 있던 장바구니 자료를 지운다. + if($sw_direct) + sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false); + + // 옵션수정일 때 기존 장바구니 자료를 먼저 삭제 + if($act == 'optionmod') + sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and it_id = '$it_id' "); + //-------------------------------------------------------- // 재고 검사 //-------------------------------------------------------- @@ -173,14 +181,6 @@ else // 장바구니에 담기 } //-------------------------------------------------------- - // 바로구매에 있던 장바구니 자료를 지운다. - if($i == 0) - sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and ct_direct = 1 ", false); - - // 옵션수정일 때 기존 장바구니 자료를 먼저 삭제 - if($act == 'optionmod') - sql_query(" delete from {$g5['g5_shop_cart_table']} where od_id = '$tmp_cart_id' and it_id = '$it_id' "); - // 장바구니에 Insert // 바로구매일 경우 장바구니가 체크된것으로 강제 설정 if($sw_direct)