Jump to content

Product prices in delivery slip


Recommended Posts

Hello, dear community

I'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

48484_4eSuEBu2qhbqv3EFxPKU_t

Link to comment
Share on other sites

  • 5 years later...

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 by Marius86 (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...