From 7c10f74dae2e34a40632aebb67546c856cdf40df Mon Sep 17 00:00:00 2001 From: chicpro Date: Fri, 23 Jan 2015 16:30:29 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=ED=92=88=EC=83=81=EC=84=B8=20?= =?UTF-8?q?=EC=9E=AC=EA=B3=A0=20=EC=B2=B4=ED=81=AC=20=EC=82=AC=EC=9A=A9?= =?UTF-8?q?=EC=97=AC=EB=B6=80=20=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/shop.extend.php | 4 ++++ mobile/shop/item.php | 3 ++- shop/item.php | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extend/shop.extend.php b/extend/shop.extend.php index b76428664..267c418ae 100644 --- a/extend/shop.extend.php +++ b/extend/shop.extend.php @@ -131,6 +131,10 @@ if($default['de_card_test']) { define('G5_CASH_RECEIPT_URL', 'https://admin.kcp.co.kr/Modules/Service/Cash/Cash_Bill_Common_View.jsp?term_id=PGNW'); } +// 상품상세 페이지에서 재고체크 실행 여부 선택 +// 상품의 옵션이 많아 로딩 속도가 느린 경우 false 로 설정 +define('G5_SOLDOUT_CHECK', true); + // 주문폼의 상품이 재고 차감에 포함되는 기준 시간설정 // 0 이면 재고 차감에 계속 포함됨 define('G5_CART_STOCK_LIMIT', 3); diff --git a/mobile/shop/item.php b/mobile/shop/item.php index 5a858a283..e4013c723 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -116,7 +116,8 @@ if ($default['de_mobile_rel_list_use']) { } // 상품품절체크 -$is_soldout = is_soldout($it['it_id']); +if(G5_SOLDOUT_CHECK) + $is_soldout = is_soldout($it['it_id']); // 주문가능체크 $is_orderable = true; diff --git a/shop/item.php b/shop/item.php index 051a0ae6c..bacb1b841 100644 --- a/shop/item.php +++ b/shop/item.php @@ -181,7 +181,8 @@ $sns_share_links .= get_sns_share_link('twitter', $sns_url, $sns_title, G5_SHOP_ $sns_share_links .= get_sns_share_link('googleplus', $sns_url, $sns_title, G5_SHOP_SKIN_URL.'/img/sns_goo_s.png'); // 상품품절체크 -$is_soldout = is_soldout($it['it_id']); +if(G5_SOLDOUT_CHECK) + $is_soldout = is_soldout($it['it_id']); // 주문가능체크 $is_orderable = true;