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


PHP comquick2cartHelper::getOrderitems方法代码示例

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


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

示例1: vendorEmail

 /**
  * vendorEmail
  *
  * @param   string  $order    order
  * @param   string  $orderid  orderid
  *
  * @return  Void
  */
 public function vendorEmail($order, $orderid)
 {
     $fullorder_id = $order['order_info'][0]->prefix . $orderid;
     // Getting orderitem infomation
     $comquick2cartHelper = new comquick2cartHelper();
     $order_details = $comquick2cartHelper->getOrderitems($orderid);
     // GETTTING STORE INFORMATION
     $store_array = array();
     $storeinfo = array();
     foreach ($order_details as $cart) {
         if (!in_array($cart['store_id'], $store_array)) {
             $store_array[] = $cart['store_id'];
             $qtc_store_id = $cart['store_id'];
             $storeinfo[$qtc_store_id] = $comquick2cartHelper->getSoreInfo($cart['store_id']);
         }
     }
     $original_order_data = $order;
     foreach ($storeinfo as $key => $sinfo) {
         // Check for view override
         $view = $comquick2cartHelper->getViewpath('orders', 'order');
         $this->orders_site = 1;
         $this->orders_email = 1;
         $this->vendor_email = 1;
         $this->order_authorized = 1;
         // STORE RELEATED VIEW
         $this->storeReleatedView = 1;
         $html = '';
         $temp = $original_order_data['items'];
         // 3. REMOVE other verder store item  information
         foreach ($temp as $k => $order_item) {
             if ($order_item->store_id != $key) {
                 unset($temp[$k]);
             }
         }
         $this->orderinfo = $original_order_data['order_info'];
         $this->vendor_email = 1;
         $this->vendor_store_id = $key;
         $this->orderitems = $temp;
         $mainframe = JFactory::getApplication();
         $site = $mainframe->getCfg('sitename');
         $html = '<div>' . JText::sprintf('QTC_ORDER_VENDER_MAIL_MSG', $sinfo['title']) . '</div>';
         $subject = JText::sprintf('QTC_ORDER_MAIL_SUB', $site, $fullorder_id);
         ob_start();
         include $view;
         $html = ob_get_contents();
         ob_end_clean();
         $body = $html;
         $comquick2cartHelper->sendmail($sinfo['store_email'], $subject, $body, '');
     }
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:58,代码来源:helper.php


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