/** * 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); } } }
/** * 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())); }
/** * @param $order Order */ public function sendCustomerInvoice($order) { $this->emailService->send('send_customer_invoice', $this->getOrderEmailArguments($order), $order->getCustomer()->getBillingAddress()->getEmail()); }