추가옵션만 있을 때 추가옵션 출력되지 않는 오류 수정

This commit is contained in:
chicpro
2013-11-26 15:33:28 +09:00
parent b69fa277a4
commit e15331087c
3 changed files with 10 additions and 4 deletions

View File

@ -106,6 +106,12 @@ if ($row['it_id']) {
$next_href2 = '';
}
// 선택 옵션
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
// 추가 옵션
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
// 관리자가 확인한 사용후기의 개수를 얻음
$sql = " select count(*) as cnt from `{$g5['g5_shop_item_use_table']}` where it_id = '{$it_id}' and is_confirm = '1' ";
$row = sql_fetch($sql);

View File

@ -180,7 +180,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</table>
<?php
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
if($option_1) {
?>
<section>
@ -202,7 +201,6 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
?>
<?php
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
if($option_2) {
?>
<section>
@ -225,9 +223,10 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<?php } // 전화문의가 아닐 경우 끝?>
<?php if ($it['it_use'] && !$it['it_tel_inq']) { ?>
<div id="sit_sel_option">
<?php
if(!$option_1 && !$option_2) {
if(!$option_1) {
if(!$it['it_buy_min_qty'])
$it['it_buy_min_qty'] = 1;
?>
@ -256,6 +255,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
</div>
<div id="sit_tot_price"></div>
<?php } ?>
<ul id="sit_ov_btn">
<?php if (!$it['it_tel_inq']) { ?>

View File

@ -253,7 +253,7 @@ if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
<section id="sit_sel_option">
<h3>선택된 옵션</h3>
<?php
if(!$option_1 && !$option_2) {
if(!$option_1) {
if(!$it['it_buy_min_qty'])
$it['it_buy_min_qty'] = 1;
?>