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

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

팁앤테크

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

페이지 정보

profile_image
작성자 제로
댓글 0건 조회 101,356회 작성일 09-04-18 02:30

본문

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";

댓글목록

등록된 댓글이 없습니다.

Total 829건 1 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 날짜
829 제로 1097 06-18
828 제로 3829 03-21
827 제로 4163 02-23
826 제로 30609 11-02
825 제로 33836 07-10
824 제로 43533 04-06
823 제로 31541 02-21
822 제로 36968 12-31
821 제로 30690 12-24
820 제로 30486 12-04
819 제로 33174 10-17
818 제로 32041 10-02
817 제로 56787 08-04
816 제로 30420 08-04
815 제로 41033 08-03
814 제로 41491 07-08
813 제로 71108 07-08
812 제로 85989 07-06
811 제로 31715 06-09
810 제로 37401 06-03
809 제로 35768 04-16
808 제로 36316 03-29
807 제로 30734 03-26
806 제로 37939 03-12
805 제로 32877 03-10

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
3,214
어제
47,624
최대
431,155
전체
7,326,631
Copyright (c) 株式会社YHPLUS. All rights reserved.