가상계좌 입금 통보시 장바구니 상태 변경 코드 추가

This commit is contained in:
chicpro
2013-11-05 10:27:54 +09:00
parent daf35bb0d7
commit 5eaa02eb2d

View File

@ -159,7 +159,6 @@ if(!$default['de_card_test']) {
$sql = " update {$g5['g5_shop_order_table']}
set od_receipt_price = od_receipt_price + '$ipgm_mnyx',
od_receipt_time = '$tx_tm',
od_status = '입금',
od_shop_memo = concat(od_shop_memo, \"\\n개인결제 ".$row['pp_id']." 로 결제완료 - ".$receipt_time."\")
where od_id = '{$row['od_id']}' ";
$result = sql_query($sql, FALSE);
@ -168,8 +167,7 @@ if(!$default['de_card_test']) {
// 주문서 UPDATE
$sql = " update {$g5['g5_shop_order_table']}
set od_receipt_price = '$ipgm_mnyx',
od_receipt_time = '$tx_tm',
od_status = '입금'
od_receipt_time = '$tx_tm'
where od_id = '$order_no'
and od_tno = '$tno' ";
$result = sql_query($sql, FALSE);
@ -191,6 +189,14 @@ if(!$default['de_card_test']) {
$sql .= " , od_status = '입금' ";
$sql .= " where od_id = '$od_id' ";
sql_query($sql, FALSE);
// 장바구니 상태변경
if($info['od_misu'] == 0) {
$sql = " update {$g5['g5_shop_cart_table']}
set ct_status = '입금'
where od_id = '$od_id' ";
sql_query($sql, FALSE);
}
}
/* = -------------------------------------------------------------------------- = */