부분취소시 주문 내역관련 질문드려봅니다
본문
사진처럼 부분취소 시 에 주문내역을 출력하면 취소상품이 같이 나오는데
업계 특성상 서류가 관공서에 들어가기 때문에 취소는 제외하고 금액이 딱 맞아떨어지게 나와야하는데
이러면 지저분하다고 다시 연락이 와서 수작업으로 타이핑해서 명세표를 만들어드렸는데요.
혹시 이걸 취소 항목을 출력되지 않게 할 수는 없을까요?
금액부분도 좀 처리해야하지만..
답변 1
orderinquiryview.php 약 80번째줄
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
and it_id = '{$row['it_id']}'
order by io_type asc, ct_id asc ";
를 아래와 같이 하면 되지 않을까요?
$sql = " select ct_id, it_name, ct_option, ct_qty, ct_price, ct_point, ct_status, io_type, io_price
from {$g5['g5_shop_cart_table']}
where od_id = '$od_id'
and it_id = '{$row['it_id']}' and ct_status != '취소'
order by io_type asc, ct_id asc ";
답변을 작성하시기 전에 로그인 해주세요.