[쇼핑몰] 카테고리 생성후 출력순서 지정하기 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[쇼핑몰] 카테고리 생성후 출력순서 지정하기

페이지 정보

본문

upgrade.php 추가후 업데이트 한번 눌러주세요.
------
sql_query(" ALTER TABLE `{$g4['yc4_category_table']}` ADD `znca_num` int(11) NOT NULL AFTER `ca_stock_qty` ", FALSE);
------

adm/shop_admin/categoryform.php

$ca[ca_list_row] = 5;
$ca[ca_stock_qty] = 99999;
$ca[znca_num] = 50;

~중략~

<tr class=ht>
    <td>1라인 이미지수</td>
    <td>
        <input type=text name=ca_list_mod size=3 value='<? echo $ca[ca_list_mod] ?>' class=ed required itemname="1라인 이미지수"> 개
        <?=help("1라인에 설정한 값만큼의 상품을 출력하지만 스킨에 따라 1라인에 하나의 상품만 출력할 수도 있습니다.");?>
    </td>
    <td>총라인수</td>
    <td>
        <input type=text name=ca_list_row size=3 value='<? echo $ca[ca_list_row] ?>' class=ed required itemname="총라인수"> 라인
        <?=help("한페이지에 몇라인을 출력할것인지를 설정합니다.\n\n한페이지에서 표시하는 상품수는 (1라인 이미지수 x 총라인수) 입니다.");?>
    </td>
</tr>
<tr class=ht>
    <td>출력순서</td>
    <td>
        <input type=text name=znca_num size=3 value='<? echo $ca[znca_num] ?>' class=ed required itemname="출력순서">
        <?=help("카테고리의 출력순서를 지정합니다.");?>
    </td>
    <td></td>
    <td></td>
</tr>
<tr class=ht>
    <td>옵션 제목 1</td>


adm/shop_admin/categoryformupdate.php

ca_stock_qty    = '$ca_stock_qty',
znca_num    = '$znca_num',


adm/shop_admin/categorylist.php

<td width=60 ><?=subject_sort_link("ca_stock_qty");?>기본재고</a></td>
<td width=50 ><?=subject_sort_link("znca_num");?>출력순서</a></td>
<td width=50 >상품수</td>

~중략~

<td><input type=text name='ca_stock_qty[$i]' size=6 style='text-align:right;' class=ed value='$row[ca_stock_qty]'></td>
<td><input type=text name='znca_num[$i]' size=4 style='text-align:right;' class=ed value='$row[znca_num]'></td>
<td><a href='./itemlist.php?sca=$row[ca_id]'><U>$row1[cnt]</U></a></td>


adm/shop_admin/categorylistupdate.php

ca_stock_qty  = '{$_POST[ca_stock_qty][$i]}',
znca_num  = '{$_POST[znca_num][$i]}'
where ca_id = '{$_POST[ca_id][$i]}' ";


shop/boxcategory.inc.php

$hsql = " select ca_id, ca_name from $g4[yc4_category_table]
          where length(ca_id) = '2'
            and ca_use = '1'
          order by znca_num, ca_id";
$hresult = sql_query($hsql);
$hnum = @mysql_num_rows($hresult);
for ($i=0; $row=sql_fetch_array($hresult); $i++)
{
    // 2단계 분류
    $menubody = "";
    $onmouseover = "";
    $onmouseout  = "";
    $sql2 = " select ca_id, ca_name from $g4[yc4_category_table]
               where LENGTH(ca_id) = '4'
                 and SUBSTRING(ca_id,1,2) = '$row[ca_id]'
                 and ca_use = '1'
               order by znca_num, ca_id";
추천1

댓글목록

등록된 댓글이 없습니다.

Total 825건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
825 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12173 2 04-23
824 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12587 2 03-06
823 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12887 2 03-06
822 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11845 2 12-07
821 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12262 1 02-27
820 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14870 1 04-01
819 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11938 1 05-21
818 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12506 1 01-27
817 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11838 1 10-22
열람중 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11978 1 04-18
815 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12338 1 05-06
814 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13624 1 05-10
813 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20861 1 05-11
812 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 30729 1 05-30
811 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 26164 1 06-10
810 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13065 1 11-14
809 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14546 0 06-24
808 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13283 0 09-29
807 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19796 0 03-20
806 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14584 0 03-20
805 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12976 0 12-24
804 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13154 0 12-24
803 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16396 0 10-22
802 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14487 0 06-14
801 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16148 0 10-10

검색

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
6,317
어제
6,363
최대
7,259
전체
1,170,865
Copyright (c) 株式会社YHPLUS. All rights reserved.