답변 1개
주문 상태가 '배송'이나 '완료'일 때 빠지고 있네요.
if ($ct_status == '배송' || $ct_status == '완료') { $stock_use = 1; // 재고에서 뺀다. if($ct['io_id']) { $sql = " update {$g5['g5_shop_item_option_table']} set io_stock_qty = io_stock_qty - '{$ct['ct_qty']}' where it_id = '{$ct['it_id']}' and io_id = '{$ct['io_id']}' and io_type = '{$ct['io_type']}' "; } else { $sql = " update {$g5['g5_shop_item_table']} set it_stock_qty = it_stock_qty - '{$ct['ct_qty']}' where it_id = '{$ct['it_id']}' "; }
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인