테스트 사이트 - 개발 중인 베타 버전입니다

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

· 9년 전 · 6634 · 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>&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개

감사합니당~~^^

게시글 목록

번호 제목
507
504
502
499
495
492
485
484
481
480
478
476
467
462
459
458
457
452
444
438
437
425
423
420
417
416
415
410
407
405