public function __construct(OrderReturn $order_return, $smarty) { $this->order_return = $order_return; $this->smarty = $smarty; $this->order = new Order($order_return->id_order); // header informations $this->date = Tools::displayDate($this->order->invoice_date); $this->title = sprintf(HTMLTemplateOrderReturn::l('Order Return #%06d'), $this->order_return->id); // footer informations $this->shop = new Shop((int) $this->order->id_shop); }
/** * @param OrderReturn $order_return * @param $smarty * @throws PrestaShopException */ public function __construct(OrderReturn $order_return, $smarty) { $this->order_return = $order_return; $this->smarty = $smarty; $this->order = new Order($order_return->id_order); // header informations $this->date = Tools::displayDate($this->order->invoice_date); $prefix = Configuration::get('PS_RETURN_PREFIX', Context::getContext()->language->id); $this->title = sprintf(HTMLTemplateOrderReturn::l('%1$s%2$06d'), $prefix, $this->order_return->id); $this->shop = new Shop((int) $this->order->id_shop); }
/** * Returns the template's HTML header * * @return string HTML header */ public function getHeader() { $this->assignCommonHeaderData(); $this->smarty->assign(array('header' => HTMLTemplateOrderReturn::l('Order return'))); return $this->smarty->fetch($this->getTemplate('header')); }