How to generate PrestaShop Invoice by Customer name
Want to generate PDF invoice by customer's name instead of the boring numbers? It's so easy - on this guide, I will show you how to do it: Step I: Modify function getFilename() in your-website/classes/pdf/HTMLTemplateInvoice.php. Step II: Get the customer object by adding this line: $customer = new Customer((int)$this->order->id_customer); Step III: Return with the name and the number. Final: Enjoy the result. Are you ready?...