faabsen Posted March 23, 2017 Share Posted March 23, 2017 (edited) Hey there, I'm trying to display the order reference in the footer of the invoice PDF. Everything works perfect when displaying a single invoice. However, if we are using the bulk process, the invoice numbers are displayed incorrectly in the footer. PS Version: 1.6.11 Changes HTMLTemplateInvoice.php /** * Returns the template's HTML pagination block * * @return string HTML pagination block */ public function getPagination() { $this->smarty->assign(array("reference" => $this->order->getUniqReference())); return $this->smarty->fetch($this->getTemplate('pagination')); } Again, when using the bulk invoices, the first invoice gets the order reference of the second invoice, the second of the third and so on (again, only in the footer). Only the last invoice has the correct corresponding order reference in its footer. The problem can be also found here: https://www.prestashop.com/forums/topic/451796-wrong-order-number-in-prestashop-pdf-invoice/ Any tips? Cheers, fab Edited March 23, 2017 by faabsen (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now