public function __construct(OrderInvoice $order_invoice, $smarty)
 {
     $this->order_invoice = $order_invoice;
     $this->order = new Order($this->order_invoice->id_order);
     $this->smarty = $smarty;
     // header informations
     $this->date = Tools::displayDate($this->order->invoice_date);
     $this->title = HTMLTemplateDeliverySlip::l('Delivery') . ' #' . Configuration::get('PS_DELIVERY_PREFIX', Context::getContext()->language->id) . sprintf('%06d', $this->order_invoice->delivery_number);
     // footer informations
     $this->shop = new Shop((int) $this->order->id_shop);
 }
Пример #2
0
 /**
  * Returns the template's HTML header
  *
  * @return string HTML header
  */
 public function getHeader()
 {
     $this->assignCommonHeaderData();
     $this->smarty->assign(array('header' => HTMLTemplateDeliverySlip::l('Delivery')));
     return $this->smarty->fetch($this->getTemplate('header'));
 }