안녕하세요.
maintype10.inc.php에서 품절된 상품은 표시하지 않게 하고 싶습니다.
검색을 해보니 아래의 링크에서 관리자님이 답변을 주셨는데요
http://sir.co.kr/bbs/board.php?bo_table=yc4_qa&wr_id=26054
-------------------------------------------------------------------------------
관리자님 답변글
-------------------------------------------------------------------------------
$sql = " select *
from $g4[yc4_item_table]
where it_use = '1'
and it_type{$type} = '1' and it_stock_qty > 0 ";
이 코드로 재고가 있는 상품만 출력이 가능합니다.
-------------------------------------------------------------------------------
위의 내용을 maintype10.inc.php에 적용해봐도 품절된 상품이 표시가 되더라구요.
어떻게 처리해야 품절된 제품은 출력이 안되는지 도움 좀 부탁드립니다.
maintype10.inc.php에서 품절된 상품은 표시하지 않게 하고 싶습니다.
검색을 해보니 아래의 링크에서 관리자님이 답변을 주셨는데요
http://sir.co.kr/bbs/board.php?bo_table=yc4_qa&wr_id=26054
-------------------------------------------------------------------------------
관리자님 답변글
-------------------------------------------------------------------------------
$sql = " select *
from $g4[yc4_item_table]
where it_use = '1'
and it_type{$type} = '1' and it_stock_qty > 0 ";
이 코드로 재고가 있는 상품만 출력이 가능합니다.
-------------------------------------------------------------------------------
위의 내용을 maintype10.inc.php에 적용해봐도 품절된 상품이 표시가 되더라구요.
어떻게 처리해야 품절된 제품은 출력이 안되는지 도움 좀 부탁드립니다.
댓글 4개
function display_type2($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="")
로 사용하고 계시네요.
function display_type2($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="")
{
global $member, $g4;
// 상품의 갯수
$items = $list_mod * $list_row;
// 1.02.00
// it_order 추가
$sql = " select *
from $g4[yc4_item_table]
where it_use = '1'
and it_type{$type} = '1' and it_stock_qty > 0 ";
이렇게 수정해서 처리해 드렸습니다.
로 사용하고 계시네요.
function display_type2($type, $skin_file, $list_mod, $list_row, $img_width, $img_height, $ca_id="")
{
global $member, $g4;
// 상품의 갯수
$items = $list_mod * $list_row;
// 1.02.00
// it_order 추가
$sql = " select *
from $g4[yc4_item_table]
where it_use = '1'
and it_type{$type} = '1' and it_stock_qty > 0 ";
이렇게 수정해서 처리해 드렸습니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 56073 | |
| 56067 | |
| 56065 | |
| 56060 | |
| 56058 | |
| 56055 | |
| 56051 | |
| 56048 | |
| 56044 | |
| 56043 | |
| 56042 | |
| 56039 | |
| 56035 | |
| 56032 | |
| 56030 | |
| 56028 | |
| 56025 | |
| 56018 | |
| 56012 | |
| 56010 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기