johnquitaneg Posted December 22, 2017 Share Posted December 22, 2017 Hello Guys, I'm new to Prestashop.. On orders, I duplicated view invoice with view invoice int for international.. I already created HTMLTemplateInvoiceInt.php added const TEMPLATE_INVOICE_INT = 'InvoiceInt'; on PDF.php and processGenerateInvoiceIntPdf() generateInvoiceIntPDFByIdOrder() on AdminPdfController.php then use the template on generateInvoiceIntPDFByOrder() $this->generatePDF($order_invoice_list, PDF::TEMPLATE_INVOICE_INT); it is generating pdf but it still using the invoice.tpl (deleted cache) I want to use other invoiceInt.tpl for this but I can't. Please help. Thanks. Link to comment Share on other sites More sharing options...
eleazar Posted December 22, 2017 Share Posted December 22, 2017 Hello Johnquitanec, There is absolutely no need for any core changes. Store as many custom invoices as you want in /themes/<yourtheme>/pdf You can change the active invoice template in the Back Office drop down for the invoice template in: Orders --> invoices But you should be awarè that the invoice,tpl just gathers the other tpl files necessary for generating an invoice. Link to comment Share on other sites More sharing options...
col_vert Posted April 2, 2019 Share Posted April 2, 2019 Hey John, Did you find out the solution ? i want to do the same but i am stuck as well ! 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