Berlindoor Posted April 24, 2013 Share Posted April 24, 2013 I just updated to version 1.5.4.0 I updated my invoice template which includes customized: header.tpl invoice.tpl invoice.tax-tab.tpl Now my invoice looks like this: http://andreapuiatti.de/screenshots/ps-invoice.png How to remove the empty space on the top? It was never there before the update! Link to comment Share on other sites More sharing options...
Berlindoor Posted April 24, 2013 Author Share Posted April 24, 2013 (edited) this is at the beginning of my invoice template. My header.tpl is empty, the code is in invoice.tpl <div style="font-size: 7pt; color: #000;"> <table width="100%"> <tr> <td style="width: 35%"> {if $logo_path} <img src="{$logo_path}"/> {/if} </td> <td style="width: 65%"> <p> </p> <p style="text-align:right;font-size:x-large;margin-top:20px">{l s='Fattura/Documento di consegna' pdf='true'}: {$title|replace:'Fattura #':'':'htmlall':'UTF-8'}</p> </td> </tr> </table> Edited April 24, 2013 by Berlindoor (see edit history) Link to comment Share on other sites More sharing options...
Berlindoor Posted April 25, 2013 Author Share Posted April 25, 2013 solved. I moved part of the invoice template in the header Link to comment Share on other sites More sharing options...
Blooregard1984 Posted September 6, 2013 Share Posted September 6, 2013 solved. I moved part of the invoice template in the header Hi Berlindoor, I too have a modified invoice template and the white space has been driving me crazy. Can you tell which part of the code you moved to the header? Thanks Link to comment Share on other sites More sharing options...
mouse1 Posted September 25, 2013 Share Posted September 25, 2013 (edited) I can't find any invoice.tpl in my Prestashop 1.5.4.0 . Where is it? I'm using default theme and there is no file like that. Thanks for any advice. UPDATE! Oops, sorry! I found it. I thought it was supposed to be in the default theme folder. For those who are also blind like me : it's in your root Prestashop folder - pdf folder - there you go, invoice.tpl really does exist! Woohoo. Edited September 25, 2013 by mouse1 (see edit history) Link to comment Share on other sites More sharing options...
rajeshgargalwar Posted May 20, 2014 Share Posted May 20, 2014 Berlindoor, on 25 Apr 2013 - 10:54 AM, said: solved.I moved part of the invoice template in the header Hi, I have try to move invoice part in header file but after that the same details also showing in delivery slip. Can any body help for corrective action. Rajesh Garg Link to comment Share on other sites More sharing options...
tuk66 Posted May 27, 2014 Share Posted May 27, 2014 The header.tpl template is shared by both invoice and delivery slip. And the footer.tpl as well. Move some code from the header.tpl to the invoice.tpl template. Link to comment Share on other sites More sharing options...
rajeshgargalwar Posted May 28, 2014 Share Posted May 28, 2014 Hi, thanks for revert. Delivery slip format is entirely different from invoice slip.. i.e. font size, color, alignment etc... Please suggest some another option. Rejesh Garg Sunshoppy.com Link to comment Share on other sites More sharing options...
tuk66 Posted July 17, 2014 Share Posted July 17, 2014 Create 2 different /pdf/header.tpl and /pdf/footer.tpl templates. Then create getHeader() and getFooter() functions in both /classes/pdf/HTMLTemplateInvoice.php and /classes/pdf/HTMLTemplateDeliverySlip.php classes in a similar way as there are in /classes/pdf/HTMLTemplate.php. 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