테스트 사이트 - 개발 중인 베타 버전입니다

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

아이템모아 5년 전 조회 2,056

 /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;             }

 

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

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

답변 1개

채택된 답변
+20 포인트
5년 전
로그인 후 평가할 수 있습니다

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

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

로그인