답변 1개
억지로 맞춰서 했습니다. ㅠ.ㅠ
/shop_admin/configform.php
관리자 > 쇼핑몰 초기화면
히트상품...
....
할인상품... 밑에
등록순상품출력을 추가하고
/shop_admin/configformupdate.php 파일에서
de_type6_list_use = '$de_type6_list_use',
de_type6_img_height = '$de_type6_img_height',
de_type6_list_mod = '$de_type6_list_mod',
de_type6_list_row = '$de_type6_list_row',
de_type6_img_width = '$de_type6_img_width',
de_type6_img_height = '$de_type6_img_height',
필드를 추가하고
g5_shop_default 테이블에서 위필드를 생성하구요.
g5_shop_item 테이블에서 it_type6 필드를 추가하고 기본값을 1로 지정해줍니다.
/shop/index.php 파일에서
<!-- 최신상품 시작 { -->
<!-- } 최신상품 끝 -->
<header>
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=6">최신상품</a></h2>
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 최신상품 모음</p>
</header>
<?php
$list = new item_list();
$list->set_type(6);
$list->set_view('it_img', true);
$list->set_view('it_id', true);
$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', true);
echo $list->run();
?>
</section>
<!-- } 최신상품 끝 -->
넣으시면 끝~~~~~
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인