추가옵션 배송비 삭제 문의드립니다.

추가옵션 배송비 삭제 문의드립니다.

QA

추가옵션 배송비 삭제 문의드립니다.

본문

 /lib/shop.lib.php  파일에 
배송비 쿼리중 추가 옵션을  and io_type!='1' 이걸로 제외 시켰습니다. 

이유는 추가옵션마다 배송비가 다 붙어서 어마무시하게 금액이 늘어나서입니다.

 

$sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
                       SUM(ct_qty) as qty
                      from {$g5['g5_shop_cart_table']}
                      where it_id = '{$sc['it_id']}'
                      and od_id = '$cart_id'                     
                      and ct_status IN ( '쇼핑', '주문', '입금', '준비', '배송', '완료' )
                      and io_type!='1'
                      and ct_select = '$selected'";  

 

네이버 페이도 이렇게 제외시켜야하는데 

어느부분에 수정해야하나요 
lib/naverpay.lib.php에서 해야하나요 ?
shop/naverpay_order.php 에서 해야하나요?


naverpay_order.php 에 비슷한 구문이있어

if( $row['it_sc_type'] == 2 ){
                // 합계금액 계산
                $sql = " select SUM(IF(io_type = 1, (io_price * ct_qty), ((ct_price + io_price) * ct_qty))) as price,
                            SUM(ct_point * ct_qty) as point,
                            SUM(ct_qty) as qty
                            from {$g5['g5_shop_cart_table']}
                            where it_id = '{$row['it_id']}'
                            and io_type!='1'  이렇게 추가했는데 안되서요 
                            and od_id = '$s_cart_id' ";
                $sum = sql_fetch($sql);

                $sendcost = get_item_sendcost($row['it_id'], $sum['price'], $sum['qty'], $s_cart_id);

                if($sendcost == 0)
                $is_free = true;
            }

 

고수님들 어디서 손바야할가요 도와주세요 

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
전체 4,536
QA 내용 검색

회원로그인

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