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

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

QA

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

본문

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

이 질문에 댓글 쓰기 :

답변 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 ";
답변을 작성하시기 전에 로그인 해주세요.
전체 13
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1404호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT