영카트 바로구매 가재고 질문 드립니다
본문
영카트 바로구매 클릭시 가재고에 영향이 없었으면 하는데 혹시 이 부분은 어떻게 수정을 해야 할지 고수님들의 조언을 구합니다.
답변 1
lib\shop.lib.php 파일에서..
function get_it_stock_qty($it_id) 함수의 아래 부분 수정
$sql = " select SUM(ct_qty) as sum_qty
from {$g5['g5_shop_cart_table']}
where it_id = '$it_id'
and io_id = ''
and ct_stock_use = 0
and ct_status in ('주문', '입금', '준비')
and ct_direct != 1 ";
shop\cartupdate.php 에서 아래 부분 수정
$sql = " select SUM(ct_qty) as cnt from {$g5['g5_shop_cart_table']}
where od_id <> '$tmp_cart_id'
and it_id = '$it_id'
and io_id = '{$row['io_id']}'
and io_type = '{$row['io_type']}'
and ct_stock_use = 0
and ct_status = '쇼핑'
and ct_select = '1'
and ct_direct != 1 ";
답변을 작성하시기 전에 로그인 해주세요.