From 4a1596b55b808d948ebeb623390a1a576921788a Mon Sep 17 00:00:00 2001 From: thisgun Date: Mon, 30 Dec 2019 13:17:28 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9E=A5=EB=B0=94=EA=B5=AC=EB=8B=88=20?= =?UTF-8?q?=EC=B5=9C=EB=8C=80=EC=88=98=EB=9F=89=20=EC=84=A0=ED=83=9D=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EB=B0=8F=20=EC=9E=98=EB=AA=BB=EB=90=9C=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 +++- theme/basic/mobile/shop/category.php | 4 ++-- theme/basic/mobile/skin/shop/basic/relation.10.skin.php | 7 +++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/shop/cartupdate.php b/shop/cartupdate.php index 79a6e0e2f..4508d75d9 100644 --- a/shop/cartupdate.php +++ b/shop/cartupdate.php @@ -184,7 +184,9 @@ else // 장바구니에 담기 and ct_status = '쇼핑' "; $row4 = sql_fetch($sql4); - if(($sum_qty + $row4['ct_sum']) > $it['it_buy_max_qty']) + $option_sum_qty = ( $act === 'optionmod' ) ? $sum_qty : $sum_qty + $row4['ct_sum']; + + if(($option_sum_qty) > $it['it_buy_max_qty']) alert($it['it_name'].'의 선택옵션 개수 총합 '.number_format($it['it_buy_max_qty']).'개 이하로 주문해 주십시오.', './cart.php'); } } diff --git a/theme/basic/mobile/shop/category.php b/theme/basic/mobile/shop/category.php index 5e648de80..9ee08f71b 100644 --- a/theme/basic/mobile/shop/category.php +++ b/theme/basic/mobile/shop/category.php @@ -72,7 +72,7 @@ $mshop_categories = get_shop_category_array(true); echo '