当前位置: 首页>>代码示例>>PHP>>正文


PHP orders::delayInfoSent方法代码示例

本文整理汇总了PHP中orders::delayInfoSent方法的典型用法代码示例。如果您正苦于以下问题:PHP orders::delayInfoSent方法的具体用法?PHP orders::delayInfoSent怎么用?PHP orders::delayInfoSent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在orders的用法示例。


在下文中一共展示了orders::delayInfoSent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

         if ($o['type'] == 'SP') {
             $email_subject .= ' über ' . $sp_tograb[$o['jng_sp_id']];
         }
         $from_email_name = FROM_EMAIL_NAME;
         $from_email_address = FROM_EMAIL_ADDRESS;
         $sent = tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address);
         if ($sent) {
             $cron_result[] = "{$to_name} ({$to_email_address}) - {$oid}";
             tep_mail(EMAIL_NAME_SERVICE, EMAIL_ADDRESS_SERVICE, $email_subject, $email_text, $from_email_name, $from_email_address);
             $sent_to = array();
             $sent_to[] = $to_email_address;
             $sent_to[] = EMAIL_ADDRESS_SERVICE;
             if ($o['type'] == 'JG') {
                 $items = $class_o->retrieveProducts($o['orders_id']);
                 foreach ($items as $i) {
                     $class_o->delayInfoSent($i['orders_products_id'], $timestamp, 'auto-sent', $sent_to);
                 }
             } elseif ($o['type'] == 'SP') {
                 $items = $class_jo->retrieveItems($o['orders_id']);
                 foreach ($items as $i) {
                     $class_jo->delayInfoSent($i['jng_sp_orders_items_id'], $timestamp, 'auto-sent', $sent_to);
                 }
             }
         }
     }
 }
 $mt_finish = microtime();
 list($old_usec, $old_sec) = explode(' ', $mt_start);
 list($new_usec, $new_sec) = explode(' ', $mt_finish);
 $old_mt = (double) $old_usec + (double) $old_sec;
 $new_mt = (double) $new_usec + (double) $new_sec;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:email-orders-in-sourcing.php

示例2: array

         $to_name = $order['customers_name'];
         $to_email_address = $order['customers_email_address'];
         $product_id = $item['products_model'];
         $product_name = $item['products_name'];
         $delay = '3 Tage';
         include DIR_WS_EMAILS . $languages[2]['path'] . '/jng-item-delay.php';
         $from_email_name = FROM_EMAIL_NAME;
         $from_email_address = FROM_EMAIL_ADDRESS;
         $sent = tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address);
         if ($sent) {
             $sent_to = array();
             $sent_to[] = $to_email_address;
             tep_mail(EMAIL_NAME_SERVICE, EMAIL_ADDRESS_SERVICE, $email_subject, $email_text, $from_email_name, $from_email_address);
             $sent_to[] = EMAIL_ADDRESS_SERVICE;
             $sent_time = date('Y-m-d H:i:s');
             $class_o->delayInfoSent($opid, $sent_time, $session_userinfo['username'], $sent_to);
             //$result = 'Delay Info is successfully sent.';
             $result = $opid . ",green";
         } else {
             //$result = 'Failed sending email, please try again later.';
             $result = $opid . ",red";
         }
     }
     echo utf8_encode($result);
     exit;
 } elseif ($_POST['me_action'] == 'CANCELORDER') {
     $opid = tep_db_prepare_input($_POST['op_id']);
     $old_status = tep_db_prepare_input($_POST['old_status']);
     $new_status = $class_o->doCancelOrders($opid, $old_status, $session_userinfo['username']);
     $result = array();
     $result['op_id'] = $opid;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:orders-manage.php


注:本文中的orders::delayInfoSent方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。