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) {
  • >상품문의
  • >배송정보
  • >교환정보
  • +
  • >관련상품
  • +