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

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

팁앤테크

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

페이지 정보

본문

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건 11 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
575 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 25647 0 06-04
574 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 25167 0 06-06
573 론이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 15950 0 06-07
572 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 36517 0 06-15
571 론이쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 16229 0 06-07
570 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13343 0 06-17
569 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19348 0 06-28
568 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 53027 0 06-29
567 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 58482 0 06-29
566 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 52482 0 07-02
565 허깨비쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 27122 0 07-06
564 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16246 0 01-07
563 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 39782 0 07-13
562 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 38967 0 07-22
561 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 38710 0 07-22
560 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 33400 0 07-22
559 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 52684 0 07-28
558 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 53172 0 07-29
557 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 43302 0 08-06
556 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 42730 0 08-06
555 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 48203 0 09-23
554 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 47193 0 09-27
553 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13481 0 11-01
552 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 45249 0 11-07
551 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 33593 0 11-12

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
3,317
어제
7,853
최대
8,371
전체
1,636,726
Copyright (c) 株式会社YHPLUS. All rights reserved.