1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php
if($s_mail=='Y'){ // 입금완료/ 배송확인 메일 전송시 처리 ob_start(); include_once ("{$j3_shop_path}/mail/order_mail.php"); $ma_content = ob_get_contents(); ob_end_clean();
if($ch_od_state==='2'){ $ma_subject = "{$oinfo['od_id']} 주문이 배송처리가 되었습니다."; } else { $ma_subject = "{$oinfo['od_id']} 주문의 입금확인이 되었습니다."; }
$snd_email = $config['admin_email']; $rcv_email = $oinfo['s_email']; $mail = new PHPMailer; $rtn = email_send($mail, $ma_subject, $ma_content, $snd_email, $rcv_email); } if($s_sms=='Y'){ // 입금완료/ 배송확인 SMS 전송시 처리 if($config['shop_sms_use4']=='1' && $ch_od_state==='01'){ // 입금완료시 SMS 전송 $sms_msg = sms_send_msg_conv("4", $oinfo); // 입금완료시 메시지 변환 $rtn = call_sms_send($oinfo['s_hpno'], $config['send_hp'], $sms_msg); } else if($config['shop_sms_use4']=='2' && $ch_od_state==='01'){ // 입금완료시 LMS 전송 $sms_msg = sms_send_msg_conv("4", $oinfo); // 입금완료시 메시지 변환 $rtn = call_lms_send($oinfo['s_hpno'], $config['send_hp'], $sms_msg); } if($config['deli_sms_who']=='1'){ // 배송안내시 배송자에게 SMS나 알림톡 처리시 $oinfo['s_hpno'] = $oinfo['consignee_hpno']; } if($config['shop_sms_use5']=='1' && $ch_od_state==='2'){ // 배송시 SMS 전송 $sms_msg = sms_send_msg_conv("5", $oinfo); // 배송시 메시지 변환 $rtn = call_sms_send($oinfo['s_hpno'], $config['send_hp'], $sms_msg); } else if($config['shop_sms_use5']=='2' && $ch_od_state==='2'){ // 배송시 LMS 전송 $sms_msg = sms_send_msg_conv("5", $oinfo); // 배송시 메시지 변환 $rtn = call_lms_send($oinfo['s_hpno'], $config['send_hp'], $sms_msg); }
if($config['shop_kakao_use4']=='1' && $ch_od_state==='01'){ // 입금완료시 알림톡 전송 $rtn = call_kakako_send($oinfo['s_hpno'], $config['kakao_sender'], $oinfo, '4'); } if($config['shop_kakao_use5']=='1' && $ch_od_state==='2'){ // 배송시 알림톡 전송 $rtn = call_kakako_send($oinfo['s_hpno'], $config['kakao_sender'], $oinfo, '5'); } } ?>
|