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

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

팁앤테크

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

페이지 정보

본문

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 770건 10 페이지
  • RSS
팁앤테크 목록
번호 제목 글쓴이 조회 추천 날짜
545 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 20210 0 09-18
544 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 12975 0 02-20
543 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11813 0 09-14
542 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11827 0 02-17
541 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 10860 0 08-05
540 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 11806 0 07-14
539 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 26311 0 02-11
538 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 21553 0 03-25
537 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 5246 0 05-14
536 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 4349 0 02-26
535 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 3132 0 06-09
534 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 16069 0 12-24
533 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 23136 0 03-20
532 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 14088 0 03-18
531 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18446 0 11-10
530 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17199 0 12-05
529 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15555 0 05-08
528 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 17185 0 12-22
527 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 27050 0 12-30
526 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 19760 0 03-21
525 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 15313 0 11-15
524 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 18178 0 10-16
523 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 49460 0 03-30
522 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 30045 0 06-01
521 제로쪽지보내기 메일보내기 홈페이지 자기소개 아이디로 검색 전체게시물 53398 0 07-29

검색

회원로그인

회원가입

사이트 정보

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

접속자집계

오늘
4,283
어제
7,395
최대
8,371
전체
1,667,603
Copyright (c) 株式会社YHPLUS. All rights reserved.