#209 모바일 쿠폰기능 수정 작업 중
This commit is contained in:
@ -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');
|
||||
|
||||
@ -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);
|
||||
|
||||
<?php
|
||||
if($default['de_mileage_use']) {
|
||||
$mb_point = $member['mb_mileage'];
|
||||
$p_msg = '마일리지';
|
||||
} else {
|
||||
$mb_point = $member['mb_point'];
|
||||
$p_msg = '포인트';
|
||||
}
|
||||
?>
|
||||
|
||||
if (temp_point < 0) {
|
||||
alert("포인트를 0 이상 입력하세요.");
|
||||
alert("<?php echo $p_msg; ?>를 0 이상 입력하세요.");
|
||||
f.od_temp_point.select();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (temp_point > tot_amount) {
|
||||
alert("주문금액 보다 많이 포인트결제할 수 없습니다.");
|
||||
alert("주문금액 보다 많이 <?php echo $p_msg; ?>결제할 수 없습니다.");
|
||||
f.od_temp_point.select();
|
||||
return false;
|
||||
}
|
||||
|
||||
<?php
|
||||
if($default['de_mileage_use'])
|
||||
$mb_point = $member['mb_mileage'];
|
||||
else
|
||||
$mb_point = $member['mb_point'];
|
||||
?>
|
||||
|
||||
if (temp_point > <?php echo (int)$mb_point; ?>) {
|
||||
alert("회원님의 포인트보다 많이 결제할 수 없습니다.");
|
||||
alert("회원님의 <?php echo $p_msg; ?>보다 많이 결제할 수 없습니다.");
|
||||
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("<?php echo $p_msg; ?>를 100점 단위로 입력하세요.");
|
||||
f.od_temp_point.select();
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user