메인화면에 자신의 등록 카테고리를 진열 하고 싶어요 채택완료
나옹선사
11년 전
조회 6,067
안녕 하세요!
오늘 새로 가입한 새내기입니다
많은 지도 편달 부탁 드립니다
현재 영카트를 초기 설치 하면
히트상품/추천상품/최신상품..
이런식으로 진열 되잖아요
저는 여기서
제가 만들은 숙녀복,신사복 카테고리가 있다고 치면
숙녀복이라는 카테고리의 상품을
그 바로 다음칸에는 신사복을 뭐 이런식으로 제 등록 카테고리 상품을
메인 페이지 최 상단에 진열 하고 싶어요
고수님들께서 좀 알려 주세요
초보니까 자세히좀 부탁 드립니다
감사합니다
좋은날 가득 하세요~
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
답변에 대한 댓글 4개
�
나옹선사
11년 전
�
편리
11년 전
올려주신 소스는 커뮤니티의 index.php 파일입니다.
shop/index.php 파일을 수정하셔야 합니다.
shop/index.php 파일을 수정하셔야 합니다.
�
나옹선사
11년 전
죄송 합니다 질문이 많네요 ^^
말씀 하신데로 하니까 포지션은 잡는데
카테고리가 숙녀복이라면 상단에 숙녀복 이라고 상품 카테고리를
히트상품이라고 명명 되는것 처럼 되지는 않네요?
숙녀복이라고 쓸 수는 없나요?
다음과 같이 수정 하였습니다
<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/index.php');
return;
}
define("_INDEX_", TRUE);
include_once(G5_SHOP_PATH.'/shop.head.php');
?>
<!-- 메인이미지 시작 { -->
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
<!-- } 메인이미지 끝 -->
<div>
<?php
$list = new item_list();
$list->set_category('20', 1);
$list->set_list_mod(3);
$list->set_list_row(1);
$list->set_img_size(230, 230);
$list->set_list_skin('list.10.skin.php');
$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();
?>
</div>
<?php if($default['de_type1_list_use']) { ?>
<!-- 히트상품 시작 { -->
<section class="sct_wrap">
<header>
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
</header>
<?php
$list = new item_list();
$list->set_type(1);
$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>
<!-- } 히트상품 끝 -->
<?php } ?>
///////////////////////////
오자마자 질문이 많아 죄송 합니다
편리님 답변 감사 드립니다~
말씀 하신데로 하니까 포지션은 잡는데
카테고리가 숙녀복이라면 상단에 숙녀복 이라고 상품 카테고리를
히트상품이라고 명명 되는것 처럼 되지는 않네요?
숙녀복이라고 쓸 수는 없나요?
다음과 같이 수정 하였습니다
<?php
include_once('./_common.php');
if (G5_IS_MOBILE) {
include_once(G5_MSHOP_PATH.'/index.php');
return;
}
define("_INDEX_", TRUE);
include_once(G5_SHOP_PATH.'/shop.head.php');
?>
<!-- 메인이미지 시작 { -->
<?php echo display_banner('메인', 'mainbanner.10.skin.php'); ?>
<!-- } 메인이미지 끝 -->
<div>
<?php
$list = new item_list();
$list->set_category('20', 1);
$list->set_list_mod(3);
$list->set_list_row(1);
$list->set_img_size(230, 230);
$list->set_list_skin('list.10.skin.php');
$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();
?>
</div>
<?php if($default['de_type1_list_use']) { ?>
<!-- 히트상품 시작 { -->
<section class="sct_wrap">
<header>
<h2><a href="<?php echo G5_SHOP_URL; ?>/listtype.php?type=1">히트상품</a></h2>
<p class="sct_wrap_hdesc"><?php echo $config['cf_title']; ?> 히트상품 모음</p>
</header>
<?php
$list = new item_list();
$list->set_type(1);
$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>
<!-- } 히트상품 끝 -->
<?php } ?>
///////////////////////////
오자마자 질문이 많아 죄송 합니다
편리님 답변 감사 드립니다~
�
편리
11년 전
html 마크업 구조를 히트상품과 동일하게 맞춰주셔야 합니다.
즉 section 으로 시작해서 section으로 끝나야 하며 h2 에 기록된 타이틀명이 보여지는 것입니다.
즉 section 으로 시작해서 section으로 끝나야 하며 h2 에 기록된 타이틀명이 보여지는 것입니다.
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인
알려 주신 파일 열어보니까
어디쯤에 넣어야 되는지 통 모르겠습니다 (왕초보)
<?php
define('_INDEX_', true);
include_once('./_common.php');
// 초기화면 파일 경로 지정 : 이 코드는 가능한 삭제하지 마십시오.
if ($config['cf_include_index']) {
if (!@include_once($config['cf_include_index'])) {
die('기본환경 설정에서 초기화면 파일 경로가 잘못 설정되어 있습니다.');
}
return; // 이 코드의 아래는 실행을 하지 않습니다.
}
// 루트 index를 쇼핑몰 index 설정했을 때
if(isset($default['de_root_index_use']) && $default['de_root_index_use']) {
require_once(G5_SHOP_PATH.'/index.php');
return;
}
if (G5_IS_MOBILE) {
include_once(G5_MOBILE_PATH.'/index.php');
return;
}
include_once('./_head.php');
?>
<h2 class="sound_only">최신글</h2>
<!-- 최신글 시작 { -->
<?php
// 최신글
$sql = " select bo_table from `{$g5['board_table']}` a left join `{$g5['group_table']}` b on (a.gr_id=b.gr_id) where a.bo_device <> 'mobile' order by b.gr_order, a.bo_order ";
$result = sql_query($sql);
for ($i=0; $row=sql_fetch_array($result); $i++) {
if ($i%2==1) $lt_style = "margin-left:20px";
else $lt_style = "";
?>
<div style="float:left;<?php echo $lt_style ?>">
<?php
// 이 함수가 바로 최신글을 추출하는 역할을 합니다.
// 사용방법 : latest(스킨, 게시판아이디, 출력라인, 글자수);
echo latest("basic", $row['bo_table'], 5, 25);
?>
</div>
<?php
}
?>
<!-- } 최신글 끝 -->
<?php
include_once('./_tail.php');
?>
////////////////////////////////
죄송하지만 자세히좀 알려 주시면 감사 하겠습니다
최상단에 넣고 싶어서 그렇습니다
감사 합니다~