관련 상품 출력 여부에 따른 버튼 생성,

· 2015-01-21 (수) 19:51:08 · 1516 · 1
shop/item.php 에서

<ul class="sanchor">
<li><a href="#sit_inf" <?php if ($anc_id == 'inf') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="#sit_use" <?php if ($anc_id == 'use') echo 'class="sanchor_on"'; ?>>사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></a></li>
<li><a href="#sit_qa" <?php if ($anc_id == 'qa') echo 'class="sanchor_on"'; ?>>상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></a></li>
<?php if ($default['de_baesong_content']) { ?><li><a href="#sit_dvr" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="#sit_ex" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
<li><a href="#sit_rel" <?php if ($anc_id == 'rel') echo 'class="sanchor_on"'; ?>>관련상품 <span class="item_relation_count"><?php echo $item_relation_count; ?></span></a></li>
</ul>

관련 상품 부분이 출력 여부와 상관없이 무조건 버튼이 출력되도록 되어 있네요 ^^
|

댓글 1개

알려주신 내용을 확인했습니다. 수정하겠습니다.
댓글을 작성하시려면 로그인이 필요합니다.

버그신고

4,191건

  문의게시판을 이용해 주세요 :) https://sir.kr/co_qa  

+
분류 제목 글쓴이 날짜
15-01-28
15-01-26
15-01-25
15-01-25
15-01-23
15-01-21
15-01-13
14-12-30
14-12-30
14-12-27
14-12-26
14-12-23
14-12-22
14-12-19
14-12-17
14-12-15
14-12-15
14-12-12
14-12-11
14-12-10