예제 #1
0
 function display($tpl = null)
 {
     $model = new BookProModelApplication();
     $this->content = $model->getItemByCode('CUSTOMIZE_SERVICES');
     parent::display($tpl);
 }
예제 #2
0
 public function changeOrderStatus($order_id)
 {
     $orderModel = new BookProModelOrder();
     $applicationModel = new BookProModelApplication();
     $customerModel = new BookProModelCustomer();
     $order = $orderModel->getItem($order_id);
     $customer = $customerModel->getItem($order->user_id);
     $this->app = $applicationModel->getItemByCode($order->type);
     $msg = 'COM_BOOKPRO_ORDER_STATUS_' . $order->order_status . '_EMAIL_BODY';
     $body_customer = JText::_($msg);
     $body_customer = $this->fillCustomer($body_customer, $customer);
     $body_customer = $this->fillOrder($body_customer, $order);
     BookProHelper::sendMail($this->app->email_send_from, $this->app->email_send_from_name, $customer->email, JText::_('COM_BOOKPRO_ORDER_STATUS_CHANGE_EMAIL_SUB'), $body_customer, true);
 }