[*] PDF : New hook actionPDFInvoiceRender

[-] PDF : Can't display invoice due to Collection
This commit is contained in:
fBrignoli
2011-12-12 15:23:39 +00:00
parent bfb331c495
commit d8abab3eef
3 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -66,8 +66,11 @@ class PdfInvoiceControllerCore extends FrontController
}
public function display()
{
$pdf = new PDF($this->order, PDF::TEMPLATE_INVOICE, $this->context->smarty, $this->context->language->id);
{
$order_invoice_list = $this->order->getInvoicesCollection();
Hook::exec('actionPDFInvoiceRender', array('order_invoice_list' => $order_invoice_list));
$pdf = new PDF($order_invoice_list, PDF::TEMPLATE_INVOICE, $this->context->smarty, $this->context->language->id);
$pdf->render();
}