답변 1개
채택된 답변
+20 포인트
7년 전
/shop/item.php 파일에
1번 소스코드를 2번처럼 바꿔보세요.
(시험은 안해봤는데 되실거에요 아마도...아마도요.)
1. 기본
</p>
<p>function pg_anchor($anc_id) {
global $default;
global $item_use_count, $item_qa_count, $item_relation_count;
?>
<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 } ?>
</ul>
<?php
}</p>
<p>include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');
?></p>
<p><?php if($is_orderable) { ?></p>
<p>
2. 변경
</p>
<p>function pg_anchor($anc_id) {
global $default;
global $item_use_count, $item_qa_count, $item_relation_count;
?>
<ul class="sanchor">
<li><a href="javascript:item_tab_click('#sit_inf');" <?php if ($anc_id == 'inf') echo 'class="sanchor_on"'; ?>>상품정보</a></li>
<li><a href="javascript:item_tab_click('#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="javascript:item_tab_click('#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="javascript:item_tab_click('#sit_dvr');" <?php if ($anc_id == 'dvr') echo 'class="sanchor_on"'; ?>>배송정보</a></li><?php } ?>
<?php if ($default['de_change_content']) { ?><li><a href="javascript:item_tab_click('#sit_ex');" <?php if ($anc_id == 'ex') echo 'class="sanchor_on"'; ?>>교환정보</a></li><?php } ?>
</ul>
<?php
}</p>
<p>include_once(G5_SHOP_PATH.'/settle_naverpay.inc.php');
?></p>
<p><script>
function item_tab_click(view_tab){
$("#sit_inf, #sit_use, #sit_qa, #sit_dvr, #sit_ex").css({"display":"none"});
$(view_tab).css({"display":"block"});
}
$(function(){
item_tab_click('#sit_inf');
});
</script></p>
<p><?php if($is_orderable) { ?></p>
<p>
로그인 후 평가할 수 있습니다
답변에 대한 댓글 1개
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인전체 질문 목록
답변대기
채택
채택
채택
채택
채택
채택
답변대기
채택
채택
채택
답변대기
채택
채택
답변대기
채택
채택
채택
채택

