From 2a3a884ac246429be1a1e148e5aa9d037e6a95af Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 22 Jan 2015 17:21:34 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B4=80=EB=A0=A8=EC=83=81=ED=92=88=20?= =?UTF-8?q?=EC=B6=9C=EB=A0=A5=EC=84=A4=EC=A0=95=20=EC=A0=81=EC=9A=A9?= =?UTF-8?q?=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/shop/item.php | 2 +- mobile/shop/iteminfo.php | 4 ++-- shop/item.php | 10 +++++++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/mobile/shop/item.php b/mobile/shop/item.php index 89832de61..5a858a283 100644 --- a/mobile/shop/item.php +++ b/mobile/shop/item.php @@ -105,7 +105,7 @@ $sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_i $row = sql_fetch($sql); $item_qa_count = $row['cnt']; -if ($default['de_rel_list_use']) { +if ($default['de_mobile_rel_list_use']) { // 관련상품의 개수를 얻음 $sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a diff --git a/mobile/shop/iteminfo.php b/mobile/shop/iteminfo.php index f277e7f2a..155133c47 100644 --- a/mobile/shop/iteminfo.php +++ b/mobile/shop/iteminfo.php @@ -40,7 +40,7 @@ $sql = " select count(*) as cnt from `{$g5['g5_shop_item_qa_table']}` where it_i $row = sql_fetch($sql); $item_qa_count = $row['cnt']; -if ($default['de_rel_list_use']) { +if ($default['de_mobile_rel_list_use']) { // 관련상품의 개수를 얻음 $sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a @@ -62,7 +62,7 @@ function pg_anchor($info) {
  • >상품문의
  • >배송정보
  • >교환정보
  • - +
  • >관련상품
  • diff --git a/shop/item.php b/shop/item.php index ff85e34b5..051a0ae6c 100644 --- a/shop/item.php +++ b/shop/item.php @@ -167,9 +167,11 @@ $row = sql_fetch($sql); $item_qa_count = $row['cnt']; // 관련상품의 개수를 얻음 -$sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') where a.it_id = '{$it['it_id']}' "; -$row = sql_fetch($sql); -$item_relation_count = $row['cnt']; +if($default['de_rel_list_use']) { + $sql = " select count(*) as cnt from {$g5['g5_shop_item_relation_table']} a left join {$g5['g5_shop_item_table']} b on (a.it_id2=b.it_id and b.it_use='1') where a.it_id = '{$it['it_id']}' "; + $row = sql_fetch($sql); + $item_relation_count = $row['cnt']; +} // 소셜 관련 $sns_title = get_text($it['it_name']).' | '.get_text($config['cf_title']); @@ -218,7 +220,9 @@ function pg_anchor($anc_id) {
  • >상품문의
  • >배송정보
  • >교환정보
  • +
  • >관련상품
  • +