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


PHP Cart66Common::localTs方法代码示例

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


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

示例1: dailySubscriptionEmailReminderCheck

 public static function dailySubscriptionEmailReminderCheck()
 {
     Cart66Setting::setValue('daily_subscription_reminders_last_checked', Cart66Common::localTs());
     // Function that fires daily to send out subscription reminder emails.  This will be triggered once a day at 3 AM.
     // If this function fires emails will be sent.
     $dayStart = date('Y-m-d 00:00:00', Cart66Common::localTs());
     $dayEnd = date('Y-m-d 00:00:00', strtotime('+ 1 day', Cart66Common::localTs()));
     $reminder = new Cart66MembershipReminders();
     $reminders = $reminder->getModels();
     foreach ($reminders as $r) {
         if ($r->enable == 1) {
             $interval = explode(',', $r->interval);
             foreach ($interval as $i) {
                 $new_interval = trim($i) . ' ' . $r->interval_unit;
                 $product = new Cart66Product($r->subscription_plan_id);
                 $start = date('Y-m-d H:i:s', strtotime('+ ' . $new_interval, strtotime($dayStart)));
                 $end = date('Y-m-d H:i:s', strtotime('+ ' . $new_interval, strtotime($dayEnd)));
                 $sub = new Cart66AccountSubscription();
                 $subs = $sub->getModels("where active_until >= '{$start}' AND active_until < '{$end}' AND lifetime != '1' AND product_id = '{$product->id}'");
                 $log = array();
                 foreach ($subs as $s) {
                     if ($r->validateReminderEmails($s->id)) {
                         $r->sendReminderEmails($s->id);
                         $log[] = $s->id . ' :: ' . $s->billing_first_name . ' ' . $s->billing_last_name;
                     }
                 }
                 Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] Start: {$start} :: End: {$end}");
                 Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] subscription ids that meet the criteria: " . print_r($log, true));
             }
         }
     }
 }
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:32,代码来源:Cart66MembershipReminders.php

示例2: saveEmailLog

 public function saveEmailLog($email_data, $email_type, $copy, $status)
 {
     if (Cart66Setting::getValue('enable_email_log') == 1) {
         global $wpdb;
         $date = date("Y-m-d H:i:s", Cart66Common::localTs());
         if (is_array($email_data['msg'])) {
             $email_data['msg'] = $email_data['msg']['text/plain'] . '\\n\\n' . $email_data['msg']['text/html'];
         }
         $data = array('send_date' => $date, 'from_email' => $email_data['from_email'], 'from_name' => $email_data['from_name'], 'to_email' => $email_data['to_email'], 'to_name' => $email_data['to_name'], 'headers' => $email_data['head']['headers'], 'subject' => $email_data['subject'], 'body' => $email_data['msg'], 'attachments' => $email_data['attachments'], 'order_id' => $email_data['order_id'], 'email_type' => $email_type, 'copy' => $copy, 'status' => $status);
         $logTable = Cart66Common::getTableName('email_log');
         $wpdb->insert($logTable, $data);
         $emailLogId = $wpdb->insert_id;
         Cart66Common::log("Saved email log ({$emailLogId}): " . $data['status'] . "\nSQL: " . $wpdb->last_query . ' ' . Cart66Common::localTs());
     }
 }
开发者ID:arraysoftlab,项目名称:tracy-thedarkroom.com,代码行数:15,代码来源:Cart66EmailLog.php

示例3: validateExpDate

 public function validateExpDate()
 {
     $isValid = true;
     $thisYear = date('Y');
     if ($this->_cardData['month'] < 1 || empty($this->_cardData['month'])) {
         $isValid = false;
         $this->_errors[] = 'Invalid credit card month';
     } elseif ($this->_cardData['year'] < $thisYear) {
         $isValid = false;
         $this->_errors[] = 'Invalid credit card year';
     } else {
         $today = strtotime('now', Cart66Common::localTs());
         $expDate = strtotime($this->_cardData['month'] . '/28/' . $this->_cardData['year']);
         if ($today >= $expDate) {
             $isValid = false;
             $this->_errors[] = "Credit card has expired";
         }
     }
     return $isValid;
 }
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:20,代码来源:SpreedlyCreditCard.php

示例4: updateDate

 public static function updateDate($attrs)
 {
     $date = strstr($attrs['att'], ':');
     $date = substr($date, 1);
     $output = date($date, Cart66Common::localTs());
     return $output;
 }
开发者ID:arraysoftlab,项目名称:tracy-thedarkroom.com,代码行数:7,代码来源:Cart66AdvancedNotifications.php

示例5: _e

              <input type="hidden" name="cart66-action" value="prune pending orders" id="cart66-action" />
              <input type="submit" value="<?php 
_e('Prune Pending Orders', 'cart66');
?>
" class="button-secondary" />
            </form>
          </td>
        </tr>
        <tr valign="top">
          <th scope="row"><?php 
_e('Next Scheduled Cron Check', 'cart66');
?>
</th>
          <td>
            <?php 
echo Cart66Common::getTimeLeft(date('Y-m-d H:i:s', Cart66Common::localTs(wp_next_scheduled('daily_subscription_reminder_emails')))) . ' (' . date('Y-m-d H:i:s', Cart66Common::localTs(wp_next_scheduled('daily_subscription_reminder_emails'))) . ')';
?>
          </td>
        </tr>
      </tbody>
    </table>
  </div>
</div>
<script type="text/javascript">
  (function($){
    $(document).ready(function(){
      $('#cart66-inner-tabs div.pane').hide();
      $('#cart66-inner-tabs div#<?php 
echo $tab;
?>
').show();
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:31,代码来源:debug.php

示例6: dailyPrunePendingPayPalOrders

 public function dailyPrunePendingPayPalOrders()
 {
     Cart66Setting::setValue('daily_prune_pending_orders_last_checked', Cart66Common::localTs());
     $o = new Cart66Order();
     $dayStart = date('Y-m-d 00:00:00', strtotime('48 hours ago', Cart66Common::localTs()));
     $dayEnd = date('Y-m-d 00:00:00', strtotime('24 hours ago', Cart66Common::localTs()));
     $orders = $o->getOrderRows("WHERE status in ('paypal_pending','checkout_pending') AND ordered_on >= '{$dayStart}' AND ordered_on < '{$dayEnd}'");
     foreach ($orders as $order) {
         Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] yes, i am to delete an order or more: " . $order->id);
         $o->load($order->id);
         $o->deleteMe(true, true);
     }
 }
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:13,代码来源:Cart66Order.php

示例7: __

if (CART66_PRO) {
    require_once CART66_PATH . "/pro/admin/reports.php";
} else {
    echo '<p class="description">' . __('Sales reports are only available in <a href="http://cart66.com">Cart66 Professional</a>.', 'cart66') . '</p>';
}
?>
  
  <br/>
  
  <h3><?php 
_e('Export Orders', 'cart66');
?>
</h3>
  
  <?php 
$firstDayLastMonth = date("m/1/Y", strtotime('-1 month', Cart66Common::localTs()));
$lastDayLastMonth = date("m/d/Y", strtotime('-1 day', strtotime('+1 month', strtotime($firstDayLastMonth))));
?>
  <form action="" method="post" style="margin-bottom: 25px;">
    <input type="hidden" name="cart66-action" value="export_csv" />
    <table class="">
      <tr>
        <th style="text-align: left; padding: 0px 5px;"><?php 
_e('Start Date', 'cart66');
?>
</th>
        <th style="text-align: left; padding: 0px 5px;"><?php 
_e('End Date', 'cart66');
?>
</th>
        <th>&nbsp;</th>
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:31,代码来源:reports.php

示例8: Cart66MembershipReminders

                  <td bgcolor="#ccc" height="20">
                  </td>
                </tr>
              </table>
              <!-- End Footer -->

            </td>
          </tr>
        </table>
        <!-- End Main Table -->
      </div>
    </body>
    </html>
  <?php 
    } else {
        $reminderId = $data[3];
        $reminder = new Cart66MembershipReminders($reminderId);
        $msg = "Dear Test User,\n\n";
        $msg .= "Your subscription : Default Membership expires " . date(get_option('date_format'), strtotime('+ 30 days', Cart66Common::localTs())) . ".\n\n";
        $msg .= "=========================\n\n";
        $msg .= "Please log-in to your account and renew your subscription.\n\n";
        $msg .= "Your login details:\n";
        $msg .= "Your User ID: username\n";
        $msg .= "You can reset your password at the membership page\n\n";
        $msg .= "Thank you for your attention!";
        $msg .= "--\n\n";
        $msg .= "Best Regards,\n";
        $msg .= "{$reminder->from_name}\n";
        $msg .= "{$reminder->from_email}";
    }
}
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:31,代码来源:default-email-reminder.php

示例9: saveOrder

 /**
  * Store order in database after successful transaction is processed
  */
 public function saveOrder($total, $tax, $transId, $status, $accountId = 0)
 {
     $address = $this->getShipping();
     $b = $this->getBilling();
     $p = $this->getPayment();
     $orderInfo['ship_first_name'] = $address['firstName'];
     $orderInfo['ship_last_name'] = $address['lastName'];
     $orderInfo['ship_address'] = $address['address'];
     $orderInfo['ship_address2'] = $address['address2'];
     $orderInfo['ship_city'] = $address['city'];
     $orderInfo['ship_state'] = $address['state'];
     $orderInfo['ship_zip'] = $address['zip'];
     $orderInfo['ship_country'] = Cart66Common::getCountryName($address['country']);
     $orderInfo['bill_first_name'] = $b['firstName'];
     $orderInfo['bill_last_name'] = $b['lastName'];
     $orderInfo['bill_address'] = $b['address'];
     $orderInfo['bill_address2'] = $b['address2'];
     $orderInfo['bill_city'] = $b['city'];
     $orderInfo['bill_state'] = $b['state'];
     $orderInfo['bill_zip'] = $b['zip'];
     $orderInfo['bill_country'] = Cart66Common::getCountryName($b['country']);
     $orderInfo['phone'] = preg_replace("/[^0-9]/", "", $p['phone']);
     $orderInfo['email'] = $p['email'];
     $orderInfo['custom_field'] = isset($p['custom-field']) ? $p['custom-field'] : '';
     $orderInfo['coupon'] = Cart66Common::getPromoMessage();
     $orderInfo['tax'] = $tax;
     $orderInfo['shipping'] = Cart66Session::get('Cart66Cart')->getShippingCost();
     $orderInfo['subtotal'] = Cart66Session::get('Cart66Cart')->getSubTotal();
     $orderInfo['total'] = preg_replace("/[^0-9\\.]/", "", $total);
     $orderInfo['trans_id'] = $transId;
     $orderInfo['status'] = $status;
     $orderInfo['ordered_on'] = date('Y-m-d H:i:s', Cart66Common::localTs());
     $orderInfo['shipping_method'] = Cart66Session::get('Cart66Cart')->getShippingMethodName();
     $orderInfo['account_id'] = $accountId;
     $additional_fields = array();
     $custom_payment_fields = apply_filters('cart66_after_payment_form', '');
     if (is_array($custom_payment_fields)) {
         foreach ($custom_payment_fields as $key => $payment_field) {
             if (isset($p[$payment_field['slug']])) {
                 $additional_fields[$payment_field['section']][$payment_field['slug']] = array('label' => $payment_field['label'], 'value' => $p[$payment_field['slug']]);
             }
         }
     }
     $custom_billing_fields = apply_filters('cart66_after_billing_form', '');
     if (is_array($custom_billing_fields)) {
         foreach ($custom_billing_fields as $key => $billing_field) {
             if (isset($b[$billing_field['slug']])) {
                 $additional_fields[$billing_field['section']][$billing_field['slug']] = array('label' => $billing_field['label'], 'value' => $b[$billing_field['slug']]);
             }
         }
     }
     $custom_shipping_fields = apply_filters('cart66_after_shipping_form', '');
     if (is_array($custom_shipping_fields)) {
         foreach ($custom_shipping_fields as $key => $shipping_field) {
             if (isset($address[$shipping_field['slug']])) {
                 $additional_fields[$shipping_field['section']][$shipping_field['slug']] = array('label' => $shipping_field['label'], 'value' => $address[$shipping_field['slug']]);
             }
         }
     }
     Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] additional fields: " . print_r($additional_fields, true));
     if (!empty($additional_fields)) {
         $orderInfo['additional_fields'] = serialize($additional_fields);
     }
     $orderInfo = Cart66Common::deNullArrayValues($orderInfo);
     $orderId = Cart66Session::get('Cart66Cart')->storeOrder($orderInfo);
     return $orderId;
 }
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:70,代码来源:Cart66GatewayAbstract.php

示例10: cart66_statistics_widget

    public static function cart66_statistics_widget()
    {
        function totalFromRange($start, $end)
        {
            global $wpdb;
            $tableName = Cart66Common::getTableName('orders');
            $sql = "SELECT sum(total) as total from {$tableName} where ordered_on > '{$start}' AND ordered_on < '{$end}'";
            $result = $wpdb->get_row($sql, ARRAY_A);
            $output = $result ? (double) $result['total'] : "N/A";
            return $output;
        }
        // TODAY
        $yday = date('Y-m-d 00:00:00', strtotime('yesterday'));
        $dayStart = date('Y-m-d 00:00:00', strtotime('today'));
        $dayEnd = date('Y-m-d 00:00:00', strtotime('tomorrow'));
        $mdayStart = date('Y-m-01 00:00:00', strtotime('today'));
        $mdayEnd = date('Y-m-01 00:00:00', strtotime('next month'));
        $today_total = totalFromRange($dayStart, $dayEnd);
        $yesterday_total = totalFromRange($yday, $dayStart);
        $month_total = totalFromRange($mdayStart, $mdayEnd);
        $total_product_sales = Cart66DataTables::productsSearch();
        $total_sales_amount = Cart66DataTables::totalSalesForMonth($total_product_sales);
        $daily_avg = ($month_total - $today_total) / date('j', strtotime('yesterday'));
        //number_format($month_total/date("j"),2);
        $total_days = date('t', strtotime('now'));
        $est_month = $total_days * $daily_avg;
        ?>
    <div class="cart66Tabbed">
      <ul class="tabs">
        <li class="t1"><a class="t1 tab" href="javascript:void(0)"><?php 
        _e('Summary', 'cart66');
        ?>
</a></li>
        <li class="t2"><a class="t2 tab" href="javascript:void(0)"><?php 
        _e('Today/Yesterday', 'cart66');
        ?>
</a></li>
        <li class="t3"><a class="t3 tab" href="javascript:void(0)"><?php 
        echo date("F, Y", strtotime("now"));
        ?>
</a></li>
        <li class="t4"><a class="t4 tab" href="javascript:void(0)"><?php 
        _e('Daily Average', 'cart66');
        ?>
</a></li>
        <li class="t5"><a class="t5 tab" href="javascript:void(0)"><?php 
        _e('Estimate', 'cart66');
        ?>
</a></li>
      </ul>
      <div class="loading">
        <h2 class="center"><?php 
        _e('loading...', 'cart66');
        ?>
</h2>
      </div>
      <div class="t1 pane">
        <table id="statSummary" cellspacing="0" cellpadding="0">
        <tfoot>
        <tr>
          <td>
           <?php 
        _e('Last Updated', 'cart66');
        ?>
:
          </td>
          <td class="right">
            <?php 
        echo date(get_option('date_format'), Cart66Common::localTs());
        ?>
 <?php 
        echo date(get_option('time_format'), Cart66Common::localTs());
        ?>
          </td>
        </tr>
        </tfoot>
          <tbody>
          <tr class="t4 tab summaryDetails">
            <td>
             <?php 
        echo date('F');
        _e(' Daily Average', 'cart66');
        ?>
:
            </td>
            <td class="right">
             <a class="t4 tab" href="javascript:void(0)"><?php 
        echo Cart66Common::currency($daily_avg);
        ?>
</a>
            </td>
          </tr>
          <tr class="t2 tab summaryDetails">
            <td>
              <?php 
        _e('Today\'s Total', 'cart66');
        ?>
:
            </td>
            <td class="right">
//.........这里部分代码省略.........
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:101,代码来源:Cart66Dashboard.php

示例11: isEffective

 public function isEffective()
 {
     $isEffective = false;
     $startPromo = strtotime($this->effective_from);
     $endPromo = strtotime($this->effective_to);
     $date = Cart66Common::localTs();
     if (empty($this->effective_from) || $this->effective_from == "0000-00-00 00:00:00") {
         $startPromo = strtotime("-1 year");
     }
     if (empty($this->effective_to) || $this->effective_to == "0000-00-00 00:00:00") {
         $endPromo = strtotime("+1 year");
     }
     if ($date < $endPromo && $date > $startPromo) {
         $isEffective = true;
     }
     return $isEffective;
 }
开发者ID:arraysoftlab,项目名称:tracy-thedarkroom.com,代码行数:17,代码来源:Cart66Promotion.php

示例12: date

 for ($i = 1; $i <= 12; $i++) {
     $val = $i;
     if (strlen($val) == 1) {
         $val = '0' . $i;
     }
     $selected = '';
     if (isset($p['cardExpirationMonth']) && $val == $p['cardExpirationMonth']) {
         $selected = 'selected="selected"';
     }
     echo "<option value='{$val}' {$selected}>{$val}</option>\n";
 }
 ?>
         </select> / <select id="payment-cardExpirationYear" name="payment[cardExpirationYear]">
           <option value=''></option>
           <?php 
 $year = date('Y', Cart66Common::localTs());
 for ($i = $year; $i <= $year + 12; $i++) {
     $selected = '';
     if (isset($p['cardExpirationYear']) && $i == $p['cardExpirationYear']) {
         $selected = 'selected="selected"';
     }
     echo "<option value='{$i}' {$selected}>{$i}</option>\n";
 }
 ?>
         </select>
       
       </li>
       
       <li>
         <label for="payment-securityId"><?php 
 _e('Security ID', 'cart66');
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:31,代码来源:checkout-form.php

示例13: cancelPayPalSubscription

 /**
  * Cancel remote PayPal subscription and set local status to canceled.
  * If expire is set to true, also change the active until date to today.
  * 
  * @param string $note The note to send to PayPal describing the reason for cancelation
  * @param boolean $expire If true, change the active_until date to today
  */
 public function cancelPayPalSubscription($note = 'Your subscription has been canceled per your request.', $expire = false)
 {
     if ($this->id > 0) {
         $pp = new Cart66PayPalPro();
         $profileId = $this->paypalBillingProfileId;
         $pp->ManageRecurringPaymentsProfileStatus($profileId, 'Cancel', $note);
         $this->active = 0;
         $this->status = 'canceled';
         if ($expire) {
             $this->activeUntil = date('Y-m-d 00:00:00', Cart66Common::localTs());
         }
         $this->save();
     }
 }
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:21,代码来源:Cart66AccountSubscription.php

示例14: saveTcoOrder

 public function saveTcoOrder()
 {
     global $wpdb;
     // NEW Parse custom value
     $referrer = false;
     $ouid = $_POST['custom'];
     if (strpos($ouid, '|') !== false) {
         list($ouid, $referrer) = explode('|', $ouid);
     }
     $order = new Cart66Order();
     $order->loadByOuid($ouid);
     if ($order->id > 0 && $order->status == 'checkout_pending' && $_POST['total'] == $order->total) {
         $statusOptions = Cart66Common::getOrderStatusOptions();
         $status = $statusOptions[0];
         $data = array('bill_first_name' => $_POST['first_name'], 'bill_last_name' => $_POST['last_name'], 'bill_address' => $_POST['street_address'], 'bill_address2' => $_POST['street_address2'], 'bill_city' => $_POST['city'], 'bill_state' => $_POST['state'], 'bill_zip' => $_POST['zip'], 'bill_country' => $_POST['country'], 'email' => $_POST['email'], 'trans_id' => $_POST['order_number'], 'ordered_on' => date('Y-m-d H:i:s', Cart66Common::localTs()), 'status' => $status);
         // Verify the first items in the IPN are for products managed by Cart66. It could be an IPN from some other type of transaction.
         $productsTable = Cart66Common::getTableName('products');
         $orderItemsTable = Cart66Common::getTableName('order_items');
         $sql = "SELECT id from {$productsTable} where item_number = '" . $_POST['li_0_product_id'] . "'";
         $productId = $wpdb->get_var($sql);
         if (!$productId) {
             Cart66Common::log('[' . basename(__FILE__) . ' - line ' . __LINE__ . "] about to throw an exception, this is not an IPN that should be managed by cart66 because the item number does not match up");
             throw new Exception("This is not an IPN that should be managed by Cart66");
         }
         $order->setData($data);
         $order->save();
         $orderId = $order->id;
         // Handle email receipts
         if (CART66_PRO && CART66_EMAILS && Cart66Setting::getValue('enable_advanced_notifications') == 1) {
             $notify = new Cart66AdvancedNotifications($orderId);
             $notify->sendAdvancedEmailReceipts();
         } elseif (CART66_EMAILS) {
             $notify = new Cart66Notifications($orderId);
             $notify->sendEmailReceipts();
         }
         // Process affiliate reward if necessary
         if ($referrer && CART66_PRO) {
             Cart66Common::awardCommission($order->id, $referrer);
             // End processing affiliate information
             if (isset($_COOKIE['ap_id']) && $_COOKIE['ap_id']) {
                 setcookie('ap_id', $referrer, time() - 3600, "/");
                 unset($_COOKIE['ap_id']);
             }
             Cart66Session::drop('app_id');
         }
         if (CART66_PRO) {
             // Begin iDevAffiliate Tracking
             if (CART66_PRO && ($url = Cart66Setting::getValue('idevaff_url'))) {
                 require_once CART66_PATH . "/pro/idevaffiliate-award.php";
             }
             // End iDevAffiliate Tracking
         }
         wp_redirect(remove_query_arg('listener', Cart66Common::getCurrentPageUrl()));
         exit;
     }
 }
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:56,代码来源:Cart662Checkout.php

示例15: preg_replace

 $orderInfo['bill_address2'] = '';
 $orderInfo['bill_city'] = '';
 $orderInfo['bill_state'] = '';
 $orderInfo['bill_zip'] = '';
 $orderInfo['phone'] = preg_replace("/[^0-9]/", "", $details['PHONENUM']);
 $orderInfo['email'] = $details['EMAIL'];
 $orderInfo['coupon'] = $promoMsg;
 $orderInfo['tax'] = isset($response['TAXAMT']) ? $response['TAXAMT'] : '';
 $orderInfo['shipping'] = Cart66Session::get('Cart66Cart')->getShippingCost();
 $orderInfo['subtotal'] = Cart66Session::get('Cart66Cart')->getSubTotal();
 $taxAmt = isset($response['TAXAMT']) ? $response['TAXAMT'] : '';
 $orderInfo['total'] = number_format(Cart66Session::get('Cart66Cart')->getGrandTotal() + $taxAmt, 2, '.', '');
 $orderInfo['non_subscription_total'] = number_format(Cart66Session::get('Cart66Cart')->getNonSubscriptionAmount(), 2, '.', '');
 $orderInfo['trans_id'] = $response['TRANSACTIONID'];
 $orderInfo['status'] = $status;
 $orderInfo['ordered_on'] = date('Y-m-d H:i:s', Cart66Common::localTs());
 $orderInfo['shipping_method'] = Cart66Session::get('Cart66Cart')->getShippingMethodName();
 if ($account) {
     $orderInfo['account_id'] = $account->id;
 } else {
     $orderInfo['account_id'] = 0;
 }
 $orderId = Cart66Session::get('Cart66Cart')->storeOrder($orderInfo);
 Cart66Session::set('order_id', $orderId);
 $receiptLink = Cart66Common::getPageLink('store/receipt');
 $newOrder = new Cart66Order($orderId);
 // Send email receipts
 if (CART66_PRO && CART66_EMAILS && Cart66Setting::getValue('enable_advanced_notifications') == 1) {
     $notify = new Cart66AdvancedNotifications($orderId);
     $notify->sendAdvancedEmailReceipts();
 } elseif (CART66_EMAILS) {
开发者ID:rbredow,项目名称:allyzabbacart,代码行数:31,代码来源:paypal-express.php


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