kmorgen Posted September 2, 2015 Share Posted September 2, 2015 (edited) Hi, just updated PS from 1.6.0.14 to 1.6.1.1 and can see the PDF layout / coding changed. Overall the new PDF invoice looks fine, but I noticed the following problems: - If a Discount is applied, the Totals table + Payment table is completely missing. - If added a message to an Invoice this is not showing anywere (invoice message added in Adminorder) PS. I modded the invoice.addresses-tab.tpl to remove our address and invoice.summary-tab.tpl to include Carrier. However using the vanilla version still seem to have these issues. I am not sure if this is a general bug, or only on mine?! Edited September 2, 2015 by kmorgen (see edit history) Link to comment Share on other sites More sharing options...
tuk66 Posted September 3, 2015 Share Posted September 3, 2015 Check if all files in the /pdf and /classes/pdf folders are really 1.6.1.1 files (against https://www.prestashop.com/ajax/controller.php?method=download&type=releases&file=prestashop_1.6.1.1.zip&language=en). It looks like a bug. Link to comment Share on other sites More sharing options...
kmorgen Posted September 3, 2015 Author Share Posted September 3, 2015 After overriding all the files in the PDF folder with the Install files, it actually seem to solve the issue with the missing Totals. I also removed the translations in the theme folder to use the default. I think this might actually have been the problem, since a long word might have caused a linebreak screwing up the tables. However regarding the 'Invoice messages', this is actually missing in the updated invoice.tpl file in 1.6.1.1 So I have manually added this code right under <!-- Hook --> {if isset($order_invoice->note) && $order_invoice->note} <div style="line-height: 1pt"> </div> <table style="width: 100%"> <tr> <td style="width: 15%"></td> <td style="width: 85%">{$order_invoice->note|nl2br}</td> </tr> </table> {/if} Now Invoice Mesaages appear on the PDF invoices. 1 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