From b81002cc24593b86fc1a19e75a73f44fb5ecb465 Mon Sep 17 00:00:00 2001 From: chicpro Date: Tue, 25 Jun 2013 09:11:40 +0900 Subject: [PATCH] =?UTF-8?q?get=20=EB=B0=A9=EC=8B=9D=20=EC=83=81=ED=92=88?= =?UTF-8?q?=EA=B5=AC=EB=A7=A4=EC=97=90=EC=84=9C=20=EC=98=B5=EC=85=98?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EC=B2=B4=ED=81=AC=20=EC=BD=94=EB=93=9C=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shop/itembuy.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shop/itembuy.php b/shop/itembuy.php index d53b82e19..f7dbd25f4 100644 --- a/shop/itembuy.php +++ b/shop/itembuy.php @@ -8,6 +8,13 @@ $io_id = $_GET['opt']; $sql = " select * from {$g4['shop_item_table']} where it_id = '$it_id' "; $it = sql_fetch($sql); +// 상품옵션체크 +$sql = " select count(*) as cnt from {$g4['shop_item_option_table']} where it_id = '$it_id' and io_type = '0' and io_use = '1' "; +$cnt = sql_fetch($sql); + +if(($io_id && !$cnt['cnt']) || (!$io_id && $cnt['cnt'])) + alert('상품의 옵션정보가 변경됐습니다.\\n상품페이지에서 다시 주문해 주십시오.', G4_SHOP_URL.'/item.php?it_id='.$it_id); + // 옵션정보 if($io_id && $it['it_option_subject']) { $sql = " select * from {$g4['shop_item_option_table']} where it_id = '$it_id' and io_id = '$io_id' ";