영카트 ca_id if문~

영카트 ca_id if문~

QA

영카트 ca_id if문~

답변 2

본문

안녕하세요

 

카테고리가 50인 상품은 다르게 출력하고 싶은데요..

 


    <?php if ($it["ca_id"] =="50") { ?>
    <ul id="ssch_sort">
        <li><a href="<?php echo $sct_sort_href; ?>it_sum_qty&sortodr=desc">판매많은순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc">낮은가격순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=desc">높은가격순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_use_avg&sortodr=desc">평점높은순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_use_cnt&sortodr=desc">후기많은순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_update_time&sortodr=desc">최근등록순</a></li>
    </ul>
 
    <?php } else { ?>
    <ul id="ssch_sort">
        <li><a href="<?php echo $sct_sort_href; ?>it_sum_qty&sortodr=desc">판매많은순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=asc">낮은가격순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_price&sortodr=desc">높은가격순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_use_avg&sortodr=desc">평점높은순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_use_cnt&sortodr=desc">후기많은순</a></li>
        <li><a href="<?php echo $sct_sort_href; ?>it_update_time&sortodr=desc">최근등록순</a></li>
    </ul>
 
    <?php } ?>

 

이렇게 했는데 적용이 전혀 되지않네요 ㅠㅠ

 

다른 방법이 있을까요?

 

그리고 혹시 영카트에서 이름순으로 상품을 정렬할수 있는지 궁금합니다!

이 질문에 댓글 쓰기 :

답변 2

  <?php if (substr($it["ca_id"],0,2) =="50") { ?>

이렇게 해보시구요..

이름 순 정렬은 

shop\list.php 파일에서

$list->set_order_by('it_name'); 를 추가해보세요.

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 35
© SIRSOFT
현재 페이지 제일 처음으로