diff --git a/mobile/shop/kcp/personalpay_approval_form.php b/mobile/shop/kcp/personalpay_approval_form.php index e2d21269d..dec078156 100644 --- a/mobile/shop/kcp/personalpay_approval_form.php +++ b/mobile/shop/kcp/personalpay_approval_form.php @@ -202,13 +202,6 @@ of.param_opt_2.value = ""; of.param_opt_3.value = ""; - var od = window.opener.document; - od.getElementById("display_pay_button").style.display = "none"; - //od.getElementById("show_req_btn").style.display = "none"; - //od.getElementById("show_progress").style.display = "block"; - //od.getElementById("show_pay_btn").style.display = "inline"; - - //alert("주문하기를 클릭하셔야 주문이 완료됩니다."); window.opener.fpersonalpayform_check(); window.close(); } else { diff --git a/mobile/shop/personalpayform.php b/mobile/shop/personalpayform.php index e2b0e661a..90c0733a0 100644 --- a/mobile/shop/personalpayform.php +++ b/mobile/shop/personalpayform.php @@ -210,13 +210,13 @@ if($default['de_escrow_use']) { -
- + + @@ -318,7 +318,12 @@ function fpersonalpayform_check() return false; } - f.submit(); + document.getElementById("display_pay_button").style.display = "none"; + document.getElementById("show_progress").style.display = "block"; + + setTimeout(function() { + f.submit(); + }, 300); } // 결제폼 필드체크 diff --git a/mobile/shop/personalpayformupdate.php b/mobile/shop/personalpayformupdate.php index 8ae300905..74f3510e6 100644 --- a/mobile/shop/personalpayformupdate.php +++ b/mobile/shop/personalpayformupdate.php @@ -141,6 +141,24 @@ if($pp_receipt_price > 0 && $pp['pp_id'] && $pp['od_id']) { die("$sql
" . mysql_errno() . " : " . mysql_error() . "
error file : {$_SERVER['PHP_SELF']}"); } + + // 미수금 정보 업데이트 + $info = get_order_info($pp['od_id']); + + $sql = " update {$g5['g5_shop_order_table']} + set od_misu = '{$info['od_misu']}' "; + if($info['od_misu'] == 0) + $sql .= " , od_status = '입금' "; + $sql .= " where od_id = '{$pp['od_id']}' "; + sql_query($sql, FALSE); + + // 장바구니 상태변경 + if($info['od_misu'] == 0) { + $sql = " update {$g5['g5_shop_cart_table']} + set ct_status = '입금' + where od_id = '{$pp['od_id']}' "; + sql_query($sql, FALSE); + } } // 개인결제번호제거 diff --git a/shop/personalpayformupdate.php b/shop/personalpayformupdate.php index 521053ac1..553598c85 100644 --- a/shop/personalpayformupdate.php +++ b/shop/personalpayformupdate.php @@ -133,6 +133,24 @@ if($pp_receipt_price > 0 && $pp['pp_id'] && $pp['od_id']) { die("
$sql
" . mysql_errno() . " : " . mysql_error() . "
error file : {$_SERVER['PHP_SELF']}"); } + + // 미수금 정보 업데이트 + $info = get_order_info($pp['od_id']); + + $sql = " update {$g5['g5_shop_order_table']} + set od_misu = '{$info['od_misu']}' "; + if($info['od_misu'] == 0) + $sql .= " , od_status = '입금' "; + $sql .= " where od_id = '{$pp['od_id']}' "; + sql_query($sql, FALSE); + + // 장바구니 상태변경 + if($info['od_misu'] == 0) { + $sql = " update {$g5['g5_shop_cart_table']} + set ct_status = '입금' + where od_id = '{$pp['od_id']}' "; + sql_query($sql, FALSE); + } } // 개인결제번호제거