diff --git a/mobile/shop/kcp/pp_ax_hub.php b/mobile/shop/kcp/pp_ax_hub.php index ecd5bd4be..a0febf4a7 100644 --- a/mobile/shop/kcp/pp_ax_hub.php +++ b/mobile/shop/kcp/pp_ax_hub.php @@ -151,6 +151,18 @@ $c_PayPlus->m_res_msg = "연동 오류|tran_cd값이 설정되지 않았습니다."; } + if ($res_cd != '0000') + { + $res_msg = iconv("euc-kr", "utf-8", $res_msg); + + echo ""; + alert("$res_cd : $res_msg"); + exit; + } + /* = -------------------------------------------------------------------------- = */ /* = 04. 실행 END = */ diff --git a/mobile/shop/orderform.php b/mobile/shop/orderform.php index 554be528b..d9695da91 100644 --- a/mobile/shop/orderform.php +++ b/mobile/shop/orderform.php @@ -47,7 +47,6 @@ ob_start(); 쿠폰 소계 포인트 - @@ -576,7 +575,7 @@ ob_end_clean(); if ($temp_point > $member_mileage) $temp_point = $member_mileage; - echo '
결제포인트 : 점 (100점 단위로 입력하세요.)
'; + echo '
결제포인트 : 점 (100점 단위로 입력하세요.)
'; echo '
회원님의 보유포인트('.display_point($member['mb_mileage']).')중 '.display_point($temp_point).'(주문금액 '.$default['de_point_per'].'%) 내에서 결제가 가능합니다.
'; $multi_settle++; } @@ -595,7 +594,7 @@ ob_end_clean(); if ($temp_point > $member_point) $temp_point = $member_point; - echo '
결제포인트 : 점 (100점 단위로 입력하세요.)
'; + echo '
결제포인트 : 점 (100점 단위로 입력하세요.)
'; echo '
회원님의 보유포인트('.display_point($member['mb_point']).')중 '.display_point($temp_point).'(주문금액 '.$default['de_point_per'].'%) 내에서 결제가 가능합니다.
'; $multi_settle++; } @@ -784,7 +783,7 @@ $(function() { var send_cost = parseInt($("input[name=org_send_cost]").val()); $.post( "./ordercoupon.php", - { amount: (amount + send_cost) }, + { amount: amount }, function(data) { $this.after(data); } @@ -995,8 +994,8 @@ function kcp_approval() var tot_amount = ; var max_point = 0; - if (typeof(f.max_temp_point) != "undefined") - max_point = parseInt(f.max_temp_point.value); + if (typeof(pf.max_temp_point) != "undefined") + max_point = parseInt(pf.max_temp_point.value); if (typeof(pf.od_temp_point) != "undefined") { if (pf.od_temp_point.value) @@ -1005,18 +1004,6 @@ function kcp_approval() { temp_point = parseInt(pf.od_temp_point.value); - if (temp_point < 0) { - alert("포인트를 0 이상 입력하세요."); - pf.od_temp_point.select(); - return false; - } - - if (temp_point > tot_amount) { - alert("주문금액 보다 많이 포인트결제할 수 없습니다."); - pf.od_temp_point.select(); - return false; - } - + if (temp_point < 0) { + alert("를 0 이상 입력하세요."); + pf.od_temp_point.select(); + return false; + } + + if (temp_point > tot_amount) { + alert("주문금액 보다 많이 결제할 수 없습니다."); + pf.od_temp_point.select(); + return false; + } + if (temp_point > ) { alert("회원님의 보다 많이 결제할 수 없습니다."); pf.od_temp_point.select(); @@ -1040,7 +1039,7 @@ function kcp_approval() } if (parseInt(parseInt(temp_point / 100) * 100) != temp_point) { - alert("포인트를 100점 단위로 입력하세요."); + alert("를 100점 단위로 입력하세요."); pf.od_temp_point.select(); return false; } @@ -1160,18 +1159,6 @@ function forderform_check(f) { temp_point = parseInt(f.od_temp_point.value); - if (temp_point < 0) { - alert("포인트를 0 이상 입력하세요."); - f.od_temp_point.select(); - return false; - } - - if (temp_point > tot_amount) { - alert("주문금액 보다 많이 포인트결제할 수 없습니다."); - f.od_temp_point.select(); - return false; - } - + if (temp_point < 0) { + alert("를 0 이상 입력하세요."); + f.od_temp_point.select(); + return false; + } + + if (temp_point > tot_amount) { + alert("주문금액 보다 많이 결제할 수 없습니다."); + f.od_temp_point.select(); + return false; + } + if (temp_point > ) { alert("회원님의 보다 많이 결제할 수 없습니다."); f.od_temp_point.select(); @@ -1195,7 +1194,7 @@ function forderform_check(f) } if (parseInt(parseInt(temp_point / 100) * 100) != temp_point) { - alert("포인트를 100점 단위로 입력하세요."); + alert("를 100점 단위로 입력하세요."); f.od_temp_point.select(); return false; } diff --git a/shop/cart.php b/shop/cart.php index 0308070d5..dddf11f44 100644 --- a/shop/cart.php +++ b/shop/cart.php @@ -5,7 +5,8 @@ include_once('./_common.php'); set_unique_id($sw_direct); // 회원일 경우 자신의 장바구니 상품 uq_id 값을 변경 -if($is_member) { +/* +if($is_member && $sw_direct != 1) { $tmp_uq_id = get_session('ss_uq_id'); if(!$tmp_uq_id) { $tmp_uq_id = get_uniqid(); @@ -21,6 +22,7 @@ if($is_member) { and ct_time > '$ctime' "; sql_query($sql); } +*/ if (G4_IS_MOBILE) { include_once(G4_MSHOP_PATH.'/cart.php'); diff --git a/shop/orderform.php b/shop/orderform.php index 252cdcc09..2163f6507 100644 --- a/shop/orderform.php +++ b/shop/orderform.php @@ -991,7 +991,7 @@ $(function() { var send_cost = parseInt($("input[name=org_send_cost]").val()); $.post( "./ordercoupon.php", - { amount: (amount + send_cost) }, + { amount: amount }, function(data) { $this.after(data); } @@ -1256,27 +1256,30 @@ function forderform_check(f) { temp_point = parseInt(f.od_temp_point.value); + + if (temp_point < 0) { - alert("포인트를 0 이상 입력하세요."); + alert("를 0 이상 입력하세요."); f.od_temp_point.select(); return false; } if (temp_point > tot_amount) { - alert("주문금액 보다 많이 포인트결제할 수 없습니다."); + alert("주문금액 보다 많이 결제할 수 없습니다."); f.od_temp_point.select(); return false; } - - if (temp_point > ) { - alert("회원님의 포인트보다 많이 결제할 수 없습니다."); + alert("회원님의 보다 많이 결제할 수 없습니다."); f.od_temp_point.select(); return false; } @@ -1288,7 +1291,7 @@ function forderform_check(f) } if (parseInt(parseInt(temp_point / 100) * 100) != temp_point) { - alert("포인트를 100점 단위로 입력하세요."); + alert("를 100점 단위로 입력하세요."); f.od_temp_point.select(); return false; }