NIVEK Posted January 11, 2010 Share Posted January 11, 2010 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 More sharing options...
rocky Posted January 11, 2010 Share Posted January 11, 2010 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 More sharing options...
NIVEK Posted January 11, 2010 Author Share Posted January 11, 2010 thx for your help....i will try first.... Link to comment Share on other sites More sharing options...
gofer_p Posted August 15, 2010 Share Posted August 15, 2010 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 More sharing options...
more-control Posted August 31, 2011 Share Posted August 31, 2011 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 More sharing options...
Recommended Posts