영카트 5.4 버전 내용 적용
This commit is contained in:
@ -7,8 +7,12 @@ if( $od_settle_case == 'lpay' ){
|
||||
$default['de_pg_service'] = 'inicis';
|
||||
}
|
||||
|
||||
if(($od_settle_case != '무통장' && $od_settle_case != 'KAKAOPAY') && $default['de_pg_service'] == 'lg' && !$_POST['LGD_PAYKEY'])
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('init');
|
||||
|
||||
if(($od_settle_case != '무통장' && $od_settle_case != 'KAKAOPAY') && $default['de_pg_service'] == 'lg' && !$_POST['LGD_PAYKEY']){
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('결제등록 요청 후 주문해 주십시오.');
|
||||
alert('결제등록 요청 후 주문해 주십시오.');
|
||||
}
|
||||
|
||||
// 장바구니가 비어있는가?
|
||||
if (get_session("ss_direct"))
|
||||
@ -16,8 +20,10 @@ if (get_session("ss_direct"))
|
||||
else
|
||||
$tmp_cart_id = get_session('ss_cart_id');
|
||||
|
||||
if (get_cart_count($tmp_cart_id) == 0)// 장바구니에 담기
|
||||
if (get_cart_count($tmp_cart_id) == 0) { // 장바구니에 담기
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('장바구니가 비어 있습니다.');
|
||||
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G5_SHOP_URL.'/cart.php');
|
||||
}
|
||||
|
||||
$error = "";
|
||||
// 장바구니 상품 재고 검사
|
||||
@ -44,12 +50,15 @@ for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
$error .= "{$row['ct_option']} 의 재고수량이 부족합니다. 현재고수량 : $it_stock_qty 개\\n\\n";
|
||||
}
|
||||
|
||||
if($i == 0)
|
||||
if($i == 0) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('장바구니가 비어 있습니다.');
|
||||
alert('장바구니가 비어 있습니다.\\n\\n이미 주문하셨거나 장바구니에 담긴 상품이 없는 경우입니다.', G5_SHOP_URL.'/cart.php');
|
||||
}
|
||||
|
||||
if ($error != "")
|
||||
{
|
||||
$error .= "다른 고객님께서 {$od_name}님 보다 먼저 주문하신 경우입니다. 불편을 끼쳐 죄송합니다.";
|
||||
if(function_exists('add_order_post_log')) add_order_post_log($error);
|
||||
alert($error);
|
||||
}
|
||||
|
||||
@ -179,6 +188,7 @@ if($is_member) {
|
||||
}
|
||||
|
||||
if ((int)($row['od_price'] - $tot_cp_price) !== $i_price) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('쿠폰금액 최종 계산 Error.');
|
||||
die("Error.");
|
||||
}
|
||||
|
||||
@ -221,6 +231,7 @@ if($is_member && $send_cost > 0) {
|
||||
}
|
||||
|
||||
if ((int)($send_cost - $tot_sc_cp_price) !== (int)($i_send_cost - $i_send_coupon)) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('배송비 최종 계산 Error..');
|
||||
die("Error..");
|
||||
}
|
||||
|
||||
@ -235,8 +246,11 @@ if(!$tmp['sc_id'])
|
||||
$send_cost2 = 0;
|
||||
else
|
||||
$send_cost2 = (int)$tmp['sc_price'];
|
||||
if($send_cost2 !== $i_send_cost2)
|
||||
|
||||
if($send_cost2 !== $i_send_cost2){
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('추가배송비 최종 계산 Error...');
|
||||
die("Error...");
|
||||
}
|
||||
|
||||
// 결제포인트가 상이함
|
||||
// 회원이면서 포인트사용이면
|
||||
@ -257,13 +271,17 @@ if ($is_member && $config['cf_use_point'])
|
||||
}
|
||||
}
|
||||
|
||||
if (($i_temp_point > (int)$temp_point || $i_temp_point < 0) && $config['cf_use_point'])
|
||||
if (($i_temp_point > (int)$temp_point || $i_temp_point < 0) && $config['cf_use_point']) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('포인트 최종 계산 Error....');
|
||||
die("Error....");
|
||||
}
|
||||
|
||||
if ($od_temp_point)
|
||||
{
|
||||
if ($member['mb_point'] < $od_temp_point)
|
||||
if ($member['mb_point'] < $od_temp_point) {
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('회원님의 포인트가 부족하여 포인트로 결제 할 수 없습니다.');
|
||||
alert('회원님의 포인트가 부족하여 포인트로 결제 할 수 없습니다.');
|
||||
}
|
||||
}
|
||||
|
||||
$i_price = $i_price + $i_send_cost + $i_send_cost2 - $i_temp_point - $i_send_coupon;
|
||||
@ -456,6 +474,7 @@ if($tno) {
|
||||
break;
|
||||
}
|
||||
|
||||
if(function_exists('add_order_post_log')) add_order_post_log($cancel_msg);
|
||||
die("Receipt Amount Error");
|
||||
}
|
||||
}
|
||||
@ -587,7 +606,8 @@ if(!$result) {
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'order';
|
||||
include G5_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
|
||||
if(function_exists('add_order_post_log')) add_order_post_log($cancel_msg);
|
||||
die('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>'.strtoupper($od_pg).'를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
@ -633,7 +653,8 @@ if(!$result) {
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'status';
|
||||
include G5_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
|
||||
if(function_exists('add_order_post_log')) add_order_post_log($cancel_msg);
|
||||
// 주문삭제
|
||||
sql_query(" delete from {$g5['g5_shop_order_table']} where od_id = '$od_id' ");
|
||||
|
||||
@ -827,6 +848,8 @@ if($od_pg == 'inicis') {
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
if(function_exists('add_order_post_log')) add_order_post_log('', 'delete');
|
||||
|
||||
// 주문번호제거
|
||||
set_session('ss_order_id', '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user