item.form.skin.php에서 옵션상품 부분이 어느부분이죠

item.form.skin.php에서 옵션상품 부분이 어느부분이죠

QA

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>

 

이부분 같은데 기본 상품정보에 대한건 수정한것이 표시가 되는데

혹시 다른 부분인지... 저 네모 표시된 부분이 정확히 어느부분이죠?

b96b6c427a9fe2a11b9ec8f2c8de88cc_1453334129_4108.png
 

이 질문에 댓글 쓰기 :

답변 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);

    }

}

빨간색 표기함수에서 내용작성하는 것으로 생각됩니다. 

lib/shop.lib.php 파일에 함수가 정의되어 있습니다. 
답변을 작성하시기 전에 로그인 해주세요.
전체 124,057 | RSS
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT