네이버페이 주문시 수량이 옵션갯수와 같이 합산되어 표시됩니다.
답변 1개
/lib/naverpay.lib.php 232줄에 상품개수를 가져오는 함수가 있습니다.
아래 빨간색 부분을 주석해보세요.
function get_naverpay_item_stock($it_id)
{
global $g5;
$sql = " select it_id, it_stock_qty, it_use, it_soldout from {$g5['g5_shop_item_table']} where it_id = '$it_id' ";
$it = sql_fetch($sql);
if(!$it['it_id'] || !$it['it_use'] || $it['it_soldout'])
return 0;
// 옵션체크
$sql = " select count(io_no) as cnt, sum(io_stock_qty) as qty from {$g5['g5_shop_item_option_table']} where it_id = '$it_id' and io_type = '0' and io_use = '1' ";
$row = sql_fetch($sql);
//if($row['cnt'] > 0)
//return $row['qty'];
//else
return $it['it_stock_qty'];
}
답변을 작성하려면 로그인이 필요합니다.

