Jump to content

Help! Edit Invoice PDF


Recommended Posts

Sry,for my broken english..........

In customer invoice pdf, how can i add a customer ID into the PDF? and also how can i change the PDF can display,how many times the customer buy a item from us?

online waitting for help................thx

Link to comment
Share on other sites

You need to modify classes/PDF.php. See the FPDF website for tutorials on how to do this. I think you can use $order->id_customer to get the customer ID. Getting the number of times a customer has bought an item would be a lot more difficult, since there is no function in Prestashop that will get it for you. You'd have to add your own function to the Order class that queries the database for this information.

Link to comment
Share on other sites

  • 7 months later...

I would also like to know how to add the customer's ID in the invoices. I it to say customer account instead of customer ID.
I need this because one of my payment methods require my customers to enter their account number on a different website for payment.
I am no programmer to I would love to know what files to edit and what to put in those files.

Link to comment
Share on other sites

  • 1 year later...

Also for the PDF invoices, is there any way of adding in additional contact information on the invoice, such as the customers email address. As right now, the only way I can see the customers email address is by logging into the backend of the site.

 

If there is a way of having it attached to the order form and to the invoice that would be great.

Link to comment
Share on other sites

×
×
  • Create New...