영카트5 에서 상품카테고리단계별 (히트,추천,최신등등)각각의 페이지에서 보여주기 > 영카트5 팁자료실

영카트5 팁자료실

영카트5 에서 상품카테고리단계별 (히트,추천,최신등등)각각의 페이지에서 보여주기 정보

영카트5 에서 상품카테고리단계별 (히트,추천,최신등등)각각의 페이지에서 보여주기

본문

안녕하세요 영카트 초보가 좋은 팁을...발견하여 이렇게 올려봅니다^^
찾아보니 이런내용이 없길래요~~^^ 저처럼 이런 소스가 필요하신분들이 계실꺼라 생각되어서
올립니다^^
일단..
1. /shop/list.php 파일을 열어주세요
2. (일단 저는 70번째줄에 넣었습니다)
<?php if($default['de_type1_list_use']) { ?>
<!-- 히트상품 시작 { -->
<header>
        <h4><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1"><font size="5" color="fuchsia"><b>히트상품</b></font></a></h4>
    </header>
<table width="751" cellspacing="0" style="border-collapse:collapse;">
    <tr>
        <td width="140" height="200" style="border-top-width:8; border-right-width:1; border-bottom-width:8; border-left-width:8; border-top-color:fuchsia; border-right-color:black; border-bottom-color:fuchsia; border-left-color:fuchsia; border-top-style:solid; border-right-style:none; border-bottom-style:none; border-left-style:none;"><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1"><img src="/shop/img/event150.JPG" width="150" height="200" border="0"></a></td>
        <td width="595" height="200" style="border-top-width:8; border-right-width:8; border-bottom-width:8; border-left-width:1; border-top-color:fuchsia; border-right-color:fuchsia; border-bottom-color:fuchsia; border-left-color:black; border-top-style:solid; border-right-style:none; border-bottom-style:none; border-left-style:none;">

            <p>&nbsp;</p>
            <p><section class="sct_wrap">
<?php

    $list = new item_list();
요기부터    $list->set_category($ca_id, $level=2);
    $list->set_category($ca_id, $level=3);
    $list->set_category($ca_id, $level=4);
    $list->set_category($ca_id, $level=5); 요기까지요
    $list->set_type(1);
    $list->set_view('it_img', true);
    $list->set_view('it_id', false);
    $list->set_view('it_name', true);
    $list->set_view('it_basic', true);
    $list->set_view('it_cust_price', true);
    $list->set_view('it_price', true);
    $list->set_view('it_icon', true);
    $list->set_view('sns', false);
    echo $list->run();
    ?></section>
</p>
</td>
    </tr>
</table>
<!-- } 히트상품 끝 -->
<?php } ?>

밑줄을 모르겠내요~~ㅋ 암튼 저기보시면 요기부터~요기까지요 를 추가해서 위에 소스를 전부 추가한겁니다
아 저소스는 영카트메인에있는 히트,추천,최신등등 의 소스에서 가져온겁니다~~^^
요기서 요기까지의 레벨에 $list->set_category($ca_id, $level=3, $level=4) 이런식으로도해봤는데 안먹더군요~
암튼 제짧은 팁은 여기까지입니다^^ 혹시 필요하신분들 참고하세요^^
참 작은별님 정말정말 늘 감사합니다^^
추천
1

댓글 1개

전체 392
영카트5 팁자료실 내용 검색

회원로그인

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