Jump to content

Wrong order number in prestashop pdf invoice


Recommended Posts

Hello,

I am trying to put the order id in the footer of the prestashop PDF invoice. For this I added this in the file /theme/mytheme/pdf/footer.tpl:

{assign var="orderId" value="%05d"|sprintf:$order->id}
{$orderId}

 

However, when I go to orders > invoices and I generate a PDF, when there are more than one order, the last page of the PDF has the order id of the previous invoice... All the others are ok except for this one.

Did I do something wrong or is it a prestashop or a tcpdf bug ?

Link to comment
Share on other sites

Thank you tuk66,

 

i assigned the order to smarty in getFooter() and now, on all the  pages I have the order id of the next page, except for the last one which has the right one... 

 

Any idea ?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...