2026, 새로운 도약을 시작합니다.

영카트 상품상세페이지 사용후기 정렬방법

11.png
22.png
itemuse.php

$from_record = ($page - 1) * $rows; // 시작 레코드 구함

if($sql_if==1){
$sql = "select * $sql_common order by is_score desc limit $from_record, $rows ";
}else{
$sql = "select * $sql_common order by is_id desc limit $from_record, $rows ";
}

item.info.skin.php

<section id="sit_info">
<div id="sit_tab">
<ul class="tab_tit">
<li><button type="button" rel="#sit_inf" id="inf_k"class="selected">상품정보</button></li>
<li><button type="button" rel="#sit_use" id="use_k" >사용후기 <span class="item_use_count"><?php echo $item_use_count; ?></span></button></li>
<li><button type="button" rel="#sit_qa">상품문의 <span class="item_qa_count"><?php echo $item_qa_count; ?></span></button></li>
<li><button type="button" rel="#sit_dex">배송/교환</button></li>
</ul>
<ul class="tab_con">
.
'
'
'
'
.
.
<script>
$(function (){
$(".tab_con>li").hide();
$(".tab_con>li:first").show();
<?
if($sql_if){
?>
$("#use_k").addClass("selected");
$("#inf_k").removeClass("selected");
$(".tab_con>li").hide();
$("#sit_use").show();
// $(".sit_use_top").animatescroll();

<?}?>
// #sit_use
$(".tab_tit li button").click(function(){
$(".tab_tit li button").removeClass("selected");
$(this).addClass("selected");
$(".tab_con>li").hide();
$($(this).attr("rel")).show();
});
});
</script>

itemuse.skin.php



<!-- 상품 사용후기 시작 { -->
<section id="sit_use_list">
<h3>등록된 사용후기</h3>

<div class="sit_use_top">
<?php if ($star_score) { ?>
<h4>구매고객 총평점 <span>(총 <strong><?php echo $total_count; ?></strong> 건 상품평 기준)</span></h4>
<img src="<?php echo G5_SHOP_URL; ?>/img/s_star<?php echo $star_score?>.png" alt="" class="sit_star">
<?php } ?>
<div id="sit_use_wbtn">
<a href="<?php echo $itemuse_form; ?>" class="btn02 itemuse_form">사용후기 쓰기<span class="sound_only"> 새 창</span></a>
<a href="<?php echo $itemuse_list; ?>" class="btn01 itemuse_list">더보기</a>
<a href="/shop/item.php?it_id=<?=$it_id?>&sql_if=1#sit_use" >별점</a>
<a href="/shop/item.php?it_id=<?=$it_id?>&sql_if=2#sit_use" >최신후기</a>

</div>
</div>

버전 정보

테스트한 버전 5.4.18
호환 가능 버전 5.4

첨부파일

11.png (28.3 KB)
0회 2021-12-14 02:42
shop.zip (1.6 KB) 31회 2021-12-14 02:42
skin.zip (5.8 KB) 7회 2021-12-14 02:42
22.png (16.8 KB)
0회 2021-12-14 02:43
|

댓글 5개

유용한 정보 감사합니다.
정보 감사합니다.
감사합니다.

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기

영카트5 스킨

좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.
태그 필터
번호 분류 제목 글쓴이 날짜 조회
111 기타 3년 전 조회 4,035
110 기타 4년 전 조회 5,528
109 상품진열 4년 전 조회 7,829
108 상품진열 4년 전 조회 8,587
107 상품진열 4년 전 조회 8,079
106 기타 4년 전 조회 4,571
105 기타 4년 전 조회 5,325
104 기타 4년 전 조회 5,117
103 상세페이지 4년 전 조회 5,157
102 기타 5년 전 조회 5,463
101 기타 5년 전 조회 5,132
100 기타 5년 전 조회 5,149
🐛 버그신고