앞에 질문 이어서입니다
본문
작은별님께서 알려주셔서 메인에 이벤트나 카테고리 출력이 되게끔 만들엇는데요
이번엔....각 메뉴 카테고리를 들어갔을때..2차든 3차든 각각의 카테고리메뉴안에서의
히트,할인 등등 의 상품 진열을하고싶은데요
메인의 히트 상품 진열소스를 SHOP에 리스에파일에 삽입시켜 노출과 특정 카테고리 노출까지는성공했는데요
문제는 모든 카테고리가 동일하게 나온다는겁니다
메인은 전체 카테고리를 돌면서 히트나 인기가 뜨게되고
가각의 카테고리에서는 그 헤당 카테고리만 떠야되는데..
어떻게 하면될까요..???
추가..
작은별님 알려주신http://sir.co.kr/yc5_tip/114 확인해보니...메인 화면에 있는부분이더군요
그래서 댓글 도 참고하여 해보았지만.....ㅠㅠ 안뜨는군요,....
적용을하자면....한가지 분류만 되고...각각의 카테고리 메뉴페이지에서 각각의 ㅅ인기 라던지..등등 의상품이 보여지길 바라거든요..ㅠㅠ 어찌 방법이 없을까요..ㅠㅠ
제가해본건...
<?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('01', 1);
$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 } ?>
빨강표시 해둔 곳을 $ca_id 과 ? 다해보았지만...결국 빨강 표시된곳처럼해야 제품이 나오더군요...ㅠㅠ
한마디로 메인 용뿐이 적용이 안되는군요....다른 홈페이지를 보니...각각의 카테고리 메뉴에 적용이 되는것같던데...
방법이 없을까요..ㅠㅠ
답변 1
아~~ 헤결했습니다..ㅋㅋ
<?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_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 } ?>
위에 원문 빨강색 부분을 요기 빨강색부분으로 설정했더니...되는군요^^
역시...작은별님이 안계셨으면...더많은 시간이 걸릴뻔했네요^^ 항상 감사드립니다^^