민토

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

· 2015-12-16 (수) 19:53:32 · 7417 · 1
안녕하세요 영카트 초보가 좋은 팁을...발견하여 이렇게 올려봅니다^^
찾아보니 이런내용이 없길래요~~^^ 저처럼 이런 소스가 필요하신분들이 계실꺼라 생각되어서
올립니다^^
일단..
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> </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개

감사합니당~~^^
댓글을 작성하시려면 로그인이 필요합니다.

영카트5 팁자료실

455건
+
제목 글쓴이 날짜 조회
24-07-01 조회 1,754
24-06-25 조회 1,375
24-05-03 조회 1,886
24-03-29 조회 3,725
24-03-18 조회 1,742
24-03-16 조회 2,011
24-03-06 조회 1,410
24-01-26 조회 8.6만
24-01-13 조회 1,750
23-12-17 조회 3,421
23-12-11 조회 1,657
23-12-06 조회 2,810
23-11-25 조회 2,734
23-11-15 조회 2,324
23-10-25 조회 3,921
23-09-22 조회 3,140
23-08-07 조회 3,095
23-07-07 조회 1,918
23-07-07 조회 2,301
23-04-26 조회 2,129
23-03-27 조회 3,413
23-03-27 조회 2,663
23-03-24 조회 2,389
23-02-28 조회 2,110
23-02-24 조회 2,498
23-02-24 조회 2,547
23-02-24 조회 2,242
23-02-12 조회 2,674
23-01-27 조회 3,058
23-01-25 조회 3,279