item.form.skin.php에서 옵션상품 부분이 어느부분이죠
본문
네모로 표시된 부분이 item.form.skin.php에서
<div style='margin-top:20px;overflow:hidden;width:100%; padding-top:30px;'>
<p class="txt_bold padding_l15"><!--선택사항--></p>
<section id="sit_sel_option">
<h3>선택된 옵션</h3>
<?php
if(!$option_item) {
if(!$it['it_buy_min_qty'])
$it['it_buy_min_qty'] = 1;
?>
<ul id="sit_opt_added">
<li class="sit_opt_list">
<input type="hidden" name="io_type[<?php echo $it_id; ?>][]" value="0">
<input type="hidden" name="io_id[<?php echo $it_id; ?>][]" value="">
<input type="hidden" name="io_value[<?php echo $it_id; ?>][]" value="<?php echo $it['it_name']; ?>">
<input type="hidden" class="io_price" value="0">
<input type="hidden" class="io_stock" value="<?php echo $it['it_stock_qty']; ?>">
<span><img src="/data/item/<?php echo $it['it_img1']; ?>" style="width:80px; height:65px;"></span>
<span class="sit_opt_subj" style="font-size:20px;"><?php echo $it['it_name']; ?></span>
<span style="margin-left:40px;"><label for="ct_qty_<?php echo $i; ?>" class="sound_only">수량</label>
<input type="text" name="ct_qty[<?php echo $it_id; ?>][]" value="<?php echo $it['it_buy_min_qty']; ?>" id="ct_qty_<?php echo $i; ?>" class="frm_input" style="font-size:15px; width:100px; height:30px;">
</span>
<span>
<button type="button" class="sit_qty_plus btn_frmline" style="width:50px; height:30px;">증가</button>
<button type="button" class="sit_qty_minus btn_frmline" style="width:50px; height:30px;">감소</button>
</span>
<span class="sit_opt_prc" style="margin-left:30px; font-size:15px;"><!--(+0)--><?php echo number_format($it['it_price']);?>원</span>
</li>
</ul>
<script>
$(function() {
price_calculate();
});
</script>
<?php } ?>
</section>
</div>
이부분 같은데 기본 상품정보에 대한건 수정한것이 표시가 되는데
혹시 다른 부분인지... 저 네모 표시된 부분이 정확히 어느부분이죠?
답변 1
위의 위치가 맞는거 같네요. 옵션의 실제 내용은
shop/item.php에서
if($is_orderable) {
// 선택 옵션
$option_item = get_item_options($it['it_id'], $it['it_option_subject']);
// 추가 옵션
$supply_item = get_item_supply($it['it_id'], $it['it_supply_subject']);
// 상품 선택옵션 수
$option_count = 0;
if($it['it_option_subject']) {
$temp = explode(',', $it['it_option_subject']);
$option_count = count($temp);
}
// 상품 추가옵션 수
$supply_count = 0;
if($it['it_supply_subject']) {
$temp = explode(',', $it['it_supply_subject']);
$supply_count = count($temp);
}
}