영카트 바로구매 가재고 질문 드립니다

영카트 바로구매 클릭시 가재고에 영향이 없었으면 하는데 혹시 이 부분은 어떻게 수정을 해야 할지 고수님들의 조언을 구합니다.

답변 1개

lib\shop.lib.php 파일에서..

function get_it_stock_qty($it_id) 함수의 아래 부분 수정

Copy
$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 에서 아래 부분 수정

Copy
$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 ";
로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고