示例#1
0
 /**
  * Marks old, but still in "Processing" status orders as completed.
  *
  * @internal
  */
 public function completeProcessingOrders()
 {
     if ($this->options->get('advanced.automatic_complete')) {
         $orders = $this->orderService->findOldProcessing();
         foreach ($orders as $order) {
             $this->emailService->suppressNextEmail();
             /** @var $order \Jigoshop\Entity\Order */
             $order->setStatus(Status::COMPLETED, __('Completed due to order being in processing state for a month or longer.', 'jigoshop'));
             $this->orderService->save($order);
         }
     }
 }
示例#2
0
 /**
  * Displays the product data box, tabbed, with several panels covering price, stock etc
  *
  * @since        1.0
  */
 public function variablesBox()
 {
     $post = $this->wp->getGlobalPost();
     $email = $this->emailService->findForPost($post);
     Render::output('admin/email/variablesBox', array('email' => $email, 'emails' => $this->emailService->getMails()));
 }
示例#3
0
 /**
  * @param $order Order
  */
 public function sendCustomerInvoice($order)
 {
     $this->emailService->send('send_customer_invoice', $this->getOrderEmailArguments($order), $order->getCustomer()->getBillingAddress()->getEmail());
 }