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

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

팁앤테크

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

페이지 정보

본문

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 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13667 0 03-08
574 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13673 0 12-15
573 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13682 0 11-18
572 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13685 1 02-27
열람중 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13690 1 04-18
570 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13697 0 10-24
569 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13708 0 09-30
568 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13718 0 01-20
567 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13719 0 05-08
566 소니노쪽지보내기 메일보내기 자기소개 아이디로 검색 전체게시물 13727 0 10-17
565 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13732 0 09-20
564 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13737 0 12-17
563 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13753 0 04-18
562 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13768 0 02-17
561 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13768 0 01-18
560 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13774 0 04-10
559 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13778 0 12-08
558 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13785 0 05-01
557 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13805 0 05-26
556 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13807 0 03-04
555 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13808 0 09-17
554 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13823 0 07-16
553 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13827 0 04-27
552 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13855 0 12-10
551 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 13868 0 09-06

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
1,726
어제
7,612
최대
8,233
전체
1,618,911
Copyright (c) 株式会社YHPLUS. All rights reserved.