Irminsul Posted July 1, 2011 Share Posted July 1, 2011 Hello, dear communityI've got the following problem - I have to add prices of products, total price and shipping price to delivery slip. These informations should be presented in the same way they are presented in invoices. Look at the attachment - I marked the desirable area with red rectangle. Does anyone know how to do it? I know I have to modify file 'classes/PDF.php' - but what code should I change?Cheers Link to comment Share on other sites More sharing options...
Marius86 Posted March 1, 2017 Share Posted March 1, 2017 (edited) Hello, I wanted the same thing but eventually figured it out. I put here the solution that works for PS 1.4.7.3 in case other people may want to do the same. First make a back-up copy of the file "classes/pdf.php" To show prices open it and find: $pdf->ProdTab((self::$delivery ? true : '')); Replace that with this: $pdf->ProdTab(false); //show prices no mater what To show the summary at the end (total price, courier, VAT, etc) find /* Exit if delivery */ if (!self::$delivery) Replace that with this /* Exit if delivery */ if (!self::$delivery or 1) //do not exit if delivery No need to force compile or clear cache. It works instantly. Note: these changes are not preserved when upgrading to a newer Prestashop. Edited March 1, 2017 by Marius86 (see edit history) 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