5.3 버전 내용 적용

This commit is contained in:
thisgun
2018-03-30 18:12:51 +09:00
parent 8c458841d5
commit dc15e1929d
1037 changed files with 49211 additions and 21238 deletions

View File

@ -24,6 +24,7 @@ if(!sql_num_rows($result))
die('no-cart');
?>
<h2>상품옵션수정</h2>
<!-- 장바구니 옵션 시작 { -->
<form name="foption" method="post" action="<?php echo G5_SHOP_URL; ?>/cartupdate.php" onsubmit="return formcheck(this);">
<input type="hidden" name="act" value="optionmod">
@ -32,44 +33,42 @@ if(!sql_num_rows($result))
<input type="hidden" name="ct_send_cost" value="<?php echo $row2['ct_send_cost']; ?>">
<input type="hidden" name="sw_direct">
<?php
$option_1 = get_item_options($it['it_id'], $it['it_option_subject']);
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
$option_1 = get_item_options($it['it_id'], $it['it_option_subject'], '');
} else {
// 선택 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
$option_1 = get_item_options($it['it_id'], $it['it_option_subject'], 'div');
}
if($option_1) {
?>
<section class="tbl_wrap tbl_head02">
<section class="option_wr">
<h3>선택옵션</h3>
<table class="sit_ov_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<?php // 선택옵션
echo $option_1;
?>
</tbody>
</table>
</section>
<?php
}
?>
<?php
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject']);
if(defined('G5_THEME_USE_OPTIONS_TRTD') && G5_THEME_USE_OPTIONS_TRTD){
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject'], '');
} else {
// 추가 옵션 ( 기존의 tr td 태그로 가져오려면 'div' 를 '' 로 바꾸거나 또는 지워주세요 )
$option_2 = get_item_supply($it['it_id'], $it['it_supply_subject'], 'div');
}
if($option_2) {
?>
<section class="tbl_wrap tbl_head02">
<section class="option_wr">
<h3>추가옵션</h3>
<table class="sit_ov_tbl">
<colgroup>
<col class="grid_3">
<col>
</colgroup>
<tbody>
<?php // 추가옵션
echo $option_2;
?>
</tbody>
</table>
</section>
<?php
}
@ -99,15 +98,18 @@ if($option_2) {
<input type="hidden" name="io_value[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_option']; ?>">
<input type="hidden" class="io_price" value="<?php echo $row['io_price']; ?>">
<input type="hidden" class="io_stock" value="<?php echo $it_stock_qty; ?>">
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
<div>
<label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
<input type="text" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="frm_input" size="5">
<button type="button" class="sit_qty_plus btn_frmline">증가</button>
<button type="button" class="sit_qty_minus btn_frmline">감소</button>
<button type="button" class="btn_frmline">삭제</button>
<div class="opt_name">
<span class="sit_opt_subj"><?php echo $row['ct_option']; ?></span>
</div>
<div class="opt_count">
<button type="button" class="sit_qty_minus btn_frmline"><i class="fa fa-minus" aria-hidden="true"></i><span class="sound_only">감소</span></button>
<label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
<input type="text" name="ct_qty[<?php echo $it['it_id']; ?>][]" value="<?php echo $row['ct_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="num_input" size="5">
<button type="button" class="sit_qty_plus btn_frmline"><i class="fa fa-plus" aria-hidden="true"></i><span class="sound_only">증가</span></button>
<span class="sit_opt_prc"><?php echo $io_price; ?></span>
<button type="button" class="sit_opt_del"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">삭제</span></button>
</div>
</li>
<?php
}
@ -119,7 +121,7 @@ if($option_2) {
<div class="btn_confirm">
<input type="submit" value="선택사항적용" class="btn_submit">
<button type="button" id="mod_option_close" class="btn_cancel">닫기</button>
<button type="button" id="mod_option_close" class="btn_close"><i class="fa fa-times" aria-hidden="true"></i><span class="sound_only">닫기</span></button>
</div>
</form>