팝빌 알림톡 제거 완료
- 광고성 및 회원관리파일(친구톡 코드만 제거) 제외
This commit is contained in:
@ -3,7 +3,7 @@ include_once('./_common.php');
|
||||
|
||||
$it_id = isset($_REQUEST['it_id']) ? safe_replace_regex($_REQUEST['it_id'], 'it_id') : '';
|
||||
|
||||
$g5['title'] = '상품 재입고 알림';
|
||||
$g5['title'] = '상품 재입고 알림 (SMS)';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
|
||||
// 상품정보
|
||||
@ -13,7 +13,7 @@ if(! (isset($it['it_id']) && $it['it_id']))
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
if(!$it['it_soldout'] || !$it['it_stock_sms'])
|
||||
alert_close('재입고 알림을 신청할 수 없는 상품입니다.');
|
||||
alert_close('재입고SMS 알림을 신청할 수 없는 상품입니다.');
|
||||
|
||||
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_stylesheet('<link rel="stylesheet" href="'.G5_SHOP_SKIN_URL.'/style.css">', 0);
|
||||
@ -35,9 +35,6 @@ if (G5_IS_MOBILE) {
|
||||
<li class="prd_name">
|
||||
<?php echo $it['it_name']; ?>
|
||||
</li>
|
||||
<li>
|
||||
<strong>* 재입고 알림은 SMS 문자 또는 카카오 알림톡으로 발송됩니다.</strong>
|
||||
</li>
|
||||
<li>
|
||||
<label for="ss_hp" class="sound_only">휴대폰번호<strong> 필수</strong></label>
|
||||
<input type="text" name="ss_hp" value="<?php echo $member['mb_hp']; ?>" id="ss_hp" required class="required frm_input full_input" placeholder="휴대폰번호">
|
||||
@ -69,7 +66,7 @@ function fstocksms_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if(confirm("재입고 알림 요청을 등록하시겠습니까?")) {
|
||||
if(confirm("재입고SMS 알림 요청을 등록하시겠습니까?")) {
|
||||
return true;
|
||||
} else {
|
||||
window.close();
|
||||
|
||||
@ -11,7 +11,7 @@ if(! (isset($it['it_id']) && $it['it_id']))
|
||||
alert_close('상품정보가 존재하지 않습니다.');
|
||||
|
||||
if(!$it['it_soldout'] || !$it['it_stock_sms'])
|
||||
alert_close('재입고 알림을 신청할 수 없는 상품입니다.');
|
||||
alert_close('재입고SMS 알림을 신청할 수 없는 상품입니다.');
|
||||
|
||||
$ss_hp = hyphen_hp_number($ss_hp);
|
||||
if(!$ss_hp)
|
||||
@ -39,4 +39,4 @@ $sql = " insert into {$g5['g5_shop_item_stocksms_table']}
|
||||
ss_datetime = '".G5_TIME_YMDHIS."' ";
|
||||
sql_query($sql);
|
||||
|
||||
alert_close('재입고 알림 요청 등록이 완료됐습니다.');
|
||||
alert_close('재입고SMS 알림 요청 등록이 완료됐습니다.');
|
||||
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
|
||||
|
||||
//이니시스 lpay 요청으로 왔다면 $default['de_pg_service'] 값을 이니시스로 변경합니다.
|
||||
if( in_array($od_settle_case, array('lpay', 'inicis_kakaopay')) ){
|
||||
@ -541,9 +540,6 @@ else
|
||||
|
||||
// 주문번호를 얻는다.
|
||||
$od_id = get_session('ss_order_id');
|
||||
|
||||
// 주문 상품명 및 개수 조회
|
||||
$it_name_str = get_alimtalk_cart_item_name($tmp_cart_id);
|
||||
|
||||
$od_escrow = 0;
|
||||
if(isset($escw_yn) && $escw_yn === 'Y')
|
||||
@ -900,20 +896,6 @@ if($config['cf_sms_use'] && ($default['de_sms_use2'] || $default['de_sms_use3'])
|
||||
}
|
||||
// SMS END --------------------------------------------------------
|
||||
|
||||
// 알림톡 발송 BEGIN: 주문완료[CU-OR01/AD-OR01] / 무통장입금 요청[CU-OR02/AD-OR02] -------------------------
|
||||
if($od_settle_case == '무통장' && $od_misu > 0) {
|
||||
// 무통장 입금일 경우 알림톡 발송 : 주문금액 - 미결제액
|
||||
$conditions = ['od_id' => $od_id, 'od_name' => $od_name, 'it_name' => $it_name_str, 'od_receipt_price' => number_format($od_misu)]; // 변수 치환 정보
|
||||
$cu_atk = send_alimtalk_preset('CU-OR02', ['rcv' => $od_hp ?: $od_tel, 'rcvnm' => $od_name], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR02', 'super', $conditions); // 관리자
|
||||
}else{
|
||||
// 주문 완료
|
||||
$conditions = ['od_id' => $od_id, 'od_name' => $od_name, 'it_name' => $it_name_str, 'od_receipt_price' => number_format($i_price)]; // 변수 치환 정보
|
||||
$cu_atk = send_alimtalk_preset('CU-OR01', ['rcv' => $od_hp ?: $od_tel, 'rcvnm' => $od_name], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR01', 'super', $conditions); // 관리자
|
||||
}
|
||||
// 알림톡 발송 END ---------------------------------------------------------------------------------------------
|
||||
|
||||
// orderview 에서 사용하기 위해 session에 넣고
|
||||
$uid = md5($od_id.G5_TIME_YMDHIS.$REMOTE_ADDR);
|
||||
set_session('ss_orderview_uid', $uid);
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
|
||||
|
||||
$od_id = isset($_REQUEST['od_id']) ? safe_replace_regex($_REQUEST['od_id'], 'od_id') : '';
|
||||
|
||||
@ -174,16 +173,4 @@ sql_query($sql);
|
||||
if ($od['od_receipt_point'] > 0)
|
||||
insert_point($member['mb_id'], $od['od_receipt_point'], "주문번호 $od_id 본인 취소");
|
||||
|
||||
// 알림톡 발송 BEGIN: 고객주문취소완료(CU-OR04/AD-OR04) -------------------------------------
|
||||
$it_name_str = get_alimtalk_cart_item_name($od_id); // 상품명
|
||||
|
||||
// 총구매액
|
||||
$tot_price = $od['od_cart_price'] + $od['od_send_cost'] + $od['od_send_cost2'] - $od['od_cart_coupon'] - $od['od_coupon'] - $od['od_send_coupon'] - $od['od_cancel_price'];
|
||||
|
||||
$conditions = ['od_id' => $od_id, 'cancel_memo' => $cancel_memo, 'it_name' => $it_name_str, 'od_receipt_price' => number_format($tot_price)]; // 변수 치환 정보
|
||||
|
||||
$cu_atk = send_alimtalk_preset('CU-OR04', ['rcv' => $od['od_hp'] ?: $od['od_tel'], 'rcvnm' => $od['od_name']], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR04', 'super', $conditions); // 관리자
|
||||
// 알림톡 발송 END -------------------------------------------------------------
|
||||
|
||||
goto_url(G5_SHOP_URL."/orderinquiryview.php?od_id=$od_id&uid=$uid");
|
||||
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
|
||||
|
||||
//**********************************************************************************
|
||||
//이니시스가 전달하는 가상계좌이체의 결과를 수신하여 DB 처리 하는 부분 입니다.
|
||||
@ -128,19 +127,6 @@ if (in_array($_SERVER['REMOTE_ADDR'], $allowed_ips)) { //PG에서 보냈는지
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
// 알림톡 발송 BEGIN: 입금완료(CU-OR03/AD-OR03) ------------------------------
|
||||
// 주문정보 체크
|
||||
$sql = "select od_name, od_hp, od_tel from {$g5['g5_shop_order_table']} where od_id = '$od_id' limit 1";
|
||||
$od_result = sql_fetch($sql);
|
||||
$it_name_str = get_alimtalk_cart_item_name($od_id); // 상품명
|
||||
|
||||
if (isset($od_result)) {
|
||||
$conditions = ['od_id' => $od_id, 'od_name' => $od_result['od_name'], 'it_name' => $it_name_str]; // 변수 치환 정보
|
||||
$cu_atk = send_alimtalk_preset('CU-OR03', ['rcv' => $od_result['od_hp'] ?: $od_result['od_tel'], 'rcvnm' => $od_result['od_name']], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR03', 'super', $conditions); // 관리자
|
||||
}
|
||||
// 알림톡 발송 END -------------------------------------------------------
|
||||
}
|
||||
|
||||
if($INIpayLog) {
|
||||
|
||||
@ -2,7 +2,6 @@
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/etc.lib.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
※ KCP 에서 가맹점의 결과처리 페이지로 데이터를 전송할 때에, 아래와 같은
|
||||
@ -212,19 +211,6 @@ if(!$default['de_card_test']) {
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
// 알림톡 발송 BEGIN: 입금완료(CU-OR03/AD-OR03) ------------------------------
|
||||
// 주문정보 체크
|
||||
$sql = "select od_name, od_hp, od_tel from {$g5['g5_shop_order_table']} where od_id = '$od_id' limit 1";
|
||||
$od_result = sql_fetch($sql);
|
||||
$it_name_str = get_alimtalk_cart_item_name($od_id); // 상품명
|
||||
|
||||
if (isset($od_result)) {
|
||||
$conditions = ['od_id' => $od_id, 'od_name' => $od_result['od_name'], 'it_name' => $it_name_str]; // 변수 치환 정보
|
||||
$cu_atk = send_alimtalk_preset('CU-OR03', ['rcv' => $od_result['od_hp'] ?: $od_result['od_tel'], 'rcvnm' => $od_result['od_name']], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR03', 'super', $conditions); // 관리자
|
||||
}
|
||||
// 알림톡 발송 END --------------------------------------------------------
|
||||
}
|
||||
|
||||
/* = -------------------------------------------------------------------------- = */
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
|
||||
|
||||
|
||||
/*
|
||||
* [상점 결제결과처리(DB) 페이지]
|
||||
@ -145,19 +145,6 @@ if ( $LGD_HASHDATA2 == $LGD_HASHDATA ) { //해쉬값 검증이 성공이면
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
// 알림톡 발송 BEGIN: 입금완료(CU-OR03/AD-OR03) ------------------------------
|
||||
// 주문정보 체크
|
||||
$sql = "select od_name, od_hp, od_tel from {$g5['g5_shop_order_table']} where od_id = '$od_id' limit 1";
|
||||
$od_result = sql_fetch($sql);
|
||||
$it_name_str = get_alimtalk_cart_item_name($od_id); // 상품명
|
||||
|
||||
if (isset($od_result)) {
|
||||
$conditions = ['od_id' => $od_id, 'od_name' => $od_result['od_name'], 'it_name' => $it_name_str]; // 변수 치환 정보
|
||||
$cu_atk = send_alimtalk_preset('CU-OR03', ['rcv' => $od_result['od_hp'] ?: $od_result['od_tel'], 'rcvnm' => $od_result['od_name']], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR03', 'super', $conditions); // 관리자
|
||||
}
|
||||
// 알림톡 발송 END --------------------------------------------------------
|
||||
}
|
||||
|
||||
//if( 무통장 입금 성공 상점처리결과 성공 )
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_KAKAO5_PATH.'/kakao5.lib.php');
|
||||
|
||||
$NICEPAY_log_path = G5_DATA_PATH.'/log'; // 나이스페이 가상계좌 로그저장 경로
|
||||
$NICEPAY_payLog = false; // 로그를 기록하려면 true 로 수정
|
||||
@ -119,19 +118,6 @@ if (in_array($_SERVER['REMOTE_ADDR'], $pg_allow_ips)) {
|
||||
sql_query($sql, FALSE);
|
||||
}
|
||||
}
|
||||
|
||||
// 알림톡 발송 BEGIN: 입금완료(CU-OR03/AD-OR03) ------------------------------
|
||||
// 주문정보 체크
|
||||
$sql = "select od_name, od_hp, od_tel from {$g5['g5_shop_order_table']} where od_id = '$od_id' limit 1";
|
||||
$od_result = sql_fetch($sql);
|
||||
$it_name_str = get_alimtalk_cart_item_name($od_id); // 상품명
|
||||
|
||||
if (isset($od_result)) {
|
||||
$conditions = ['od_id' => $od_id, 'od_name' => $od_result['od_name'], 'it_name' => $it_name_str]; // 변수 치환 정보
|
||||
$cu_atk = send_alimtalk_preset('CU-OR03', ['rcv' => $od_result['od_hp'] ?: $od_result['od_tel'], 'rcvnm' => $od_result['od_name']], $conditions); // 회원
|
||||
$ad_atk = send_admin_alimtalk('AD-OR03', 'super', $conditions); // 관리자
|
||||
}
|
||||
// 알림톡 발송 END --------------------------------------------------------
|
||||
}
|
||||
|
||||
if($NICEPAY_payLog) {
|
||||
|
||||
Reference in New Issue
Block a user