#291 주문오류 알림 메일 및 안내 문구 추가
This commit is contained in:
@ -2370,4 +2370,13 @@ function certify_count_check($mb_id, $type)
|
||||
if((int)$row['cnt'] >= (int)$config['cf_cert_limit'])
|
||||
alert_close('오늘 '.$cert.' 본인확인을 '.$row['cnt'].'회 이용하셔서 더 이상 이용할 수 없습니다.');
|
||||
}
|
||||
|
||||
// die 함수를 utf-8 환경에서 사용할 때 한글깨짐방지
|
||||
function die_utf8($msg)
|
||||
{
|
||||
if(!trim($msg))
|
||||
return;
|
||||
|
||||
die('<html><head><head><meta charset="utf-8"></head>'.$msg.'</html>');
|
||||
}
|
||||
?>
|
||||
@ -455,7 +455,11 @@ if(!$result) {
|
||||
include G4_MSHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}");
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'order';
|
||||
include G4_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
// 장바구니 쇼핑에서 주문으로
|
||||
@ -479,11 +483,14 @@ if(!$result) {
|
||||
include G4_MSHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
echo "<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}";
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'status';
|
||||
include G4_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
// 주문삭제
|
||||
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' ");
|
||||
exit;
|
||||
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
// 회원이면서 포인트를 사용했다면 포인트 테이블에 사용을 추가
|
||||
|
||||
28
shop/ordererrormail.php
Normal file
28
shop/ordererrormail.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
|
||||
|
||||
include_once(G4_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$admin = get_admin('super');
|
||||
|
||||
$subject = $config['cf_title'].' 주문 오류 알림 메일';
|
||||
|
||||
if($error == 'order') {
|
||||
$content = '<p>주문정보를 DB에 입력하는 중 오류가 발생했습니다.</p>';
|
||||
} else if($error == 'status') {
|
||||
$content = '<p>주문 상품의 상태를 변경하는 중 DB 오류가 발생했습니다.</p>';
|
||||
}
|
||||
|
||||
if($tno) {
|
||||
$content .= '<p>KCP의 '.$od_settle_case.'는 자동 취소되었습니다.</p>';
|
||||
$content .= '<p>취소 내역은 KCP 상점관리자에서 확인할 수 있습니다.</p>';
|
||||
}
|
||||
|
||||
$content .= '<p>오류내용</p>';
|
||||
$content .= '<p>'.$sql.'</p><p>'.mysql_errno().' : '.mysql_error().'<p>error file : '.$_SERVER['PHP_SELF'].'</p>';
|
||||
|
||||
// 메일발송
|
||||
mailer($od_name, $od_email, $admin['mb_email'], $subject, $content, 1);
|
||||
|
||||
unset($error);
|
||||
?>
|
||||
@ -445,7 +445,11 @@ if(!$result) {
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
die("<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}");
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'order';
|
||||
include G4_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
// 장바구니 쇼핑에서 주문으로
|
||||
@ -469,11 +473,14 @@ if(!$result) {
|
||||
include G4_SHOP_PATH.'/kcp/pp_ax_hub_cancel.php'; // 결제취소처리
|
||||
}
|
||||
|
||||
echo "<p>$sql<p>" . mysql_errno() . " : " . mysql_error() . "<p>error file : {$_SERVER['PHP_SELF']}";
|
||||
// 관리자에게 오류 알림 메일발송
|
||||
$error = 'status';
|
||||
include G4_SHOP_PATH.'/ordererrormail.php';
|
||||
|
||||
// 주문삭제
|
||||
sql_query(" delete from {$g4['shop_order_table']} where od_id = '$od_id' ");
|
||||
exit;
|
||||
|
||||
die_utf8('<p>고객님의 주문 정보를 처리하는 중 오류가 발생해서 주문이 완료되지 않았습니다.</p><p>KCP를 이용한 전자결제(신용카드, 계좌이체, 가상계좌 등)은 자동 취소되었습니다.');
|
||||
}
|
||||
|
||||
// 회원이면서 포인트를 사용했다면 테이블에 사용을 추가
|
||||
|
||||
Reference in New Issue
Block a user