Example #1
0
 $od = sql_fetch(" select * from {$g5['g5_shop_order_table']} where od_id = '{$od_id}' ");
 if (!$od) {
     $fail_count++;
     $fail_od_id[] = $od_id;
     continue;
 }
 if ($od['od_status'] != '준비') {
     $fail_count++;
     $fail_od_id[] = $od_id;
     continue;
 }
 $delivery['invoice'] = $od_invoice;
 $delivery['invoice_time'] = G5_TIME_YMDHIS;
 $delivery['delivery_company'] = $od_delivery_company;
 // 주문정보 업데이트
 order_update_delivery($od_id, $od['mb_id'], '배송', $delivery);
 change_status($od_id, '준비', '배송');
 $succ_count++;
 // SMS
 if ($config['cf_sms_use'] == 'icode' && $_POST['send_sms'] && $default['de_sms_use5']) {
     $sms_contents = conv_sms_contents($od_id, $default['de_sms_cont5']);
     if ($sms_contents) {
         $receive_number = preg_replace("/[^0-9]/", "", $od['od_hp']);
         // 수신자번호
         $send_number = preg_replace("/[^0-9]/", "", $default['de_admin_company_tel']);
         // 발신자번호
         if ($receive_number && $send_number) {
             $SMS->Add($receive_number, $send_number, $config['cf_icode_id'], $sms_contents, "");
             $sms_count++;
         }
     }
Example #2
0
     }
     break;
 case '입금':
     if ($change_status != '준비') {
         continue;
     }
     change_status($od_id, '입금', '준비');
     break;
 case '준비':
     if ($change_status != '배송') {
         continue;
     }
     $delivery['invoice'] = $invoice;
     $delivery['invoice_time'] = $invoice_time;
     $delivery['delivery_company'] = $delivery_company;
     order_update_delivery($od_id, $od['mb_id'], $change_status, $delivery);
     change_status($od_id, '준비', '배송');
     // SMS
     if ($config['cf_sms_use'] == 'icode' && $_POST['send_sms'] && $default['de_sms_use5']) {
         $sms_contents = conv_sms_contents($od_id, $default['de_sms_cont5']);
         if ($sms_contents) {
             $receive_number = preg_replace("/[^0-9]/", "", $od['od_hp']);
             // 수신자번호
             $send_number = preg_replace("/[^0-9]/", "", $default['de_admin_company_tel']);
             // 발신자번호
             if ($receive_number && $send_number) {
                 $SMS->Add($receive_number, $send_number, $config['cf_icode_id'], $sms_contents, "");
                 $sms_count++;
             }
         }
     }