Jump to content

[SOLVED] Change Invoice.


Recommended Posts

Did you enter the seller's information under Preferences > Contact? That address will be displayed at the top of the invoice.

Unfortunately, there is no simple way to edit the invoice. You must modify the code in classes/PDF.pdf. Prestashop uses FPDF to write the PDF file.

Link to comment
Share on other sites

Hi rocky,

In Preferences>Contacts have been enter (shop name,shop email,shop address) by me.
All the above information are included but.......on the bottom, as Headquarters?
In my opinion it should be on the top,there are just delivery and invoice address (my customer's)?

Link to comment
Share on other sites

I agree on this. The sellers information should be displayed at the top like the customers information. This is how I expect to see for all my invoice, both incoming and outgoing. The "body" of an invoice should be Seller, Buyer, Products, Taxes, Sum of the sale and maybe some additional info.

Link to comment
Share on other sites

  • 5 months later...
  • 4 months later...
  • 1 month later...
  • 4 weeks later...

I have disabled tax in BO, but it still shows on PDF invoice. Now I would like to know how can I edit PDF.php to remove all tax (DDV) specification on the invoice (see picture). Because I'm not VAT registered I cannot show tax on invoice, only price of products, shipping and total price (price of products + shipping). Thank you for help!

42220_AwK68UBhv26XHsTBw4np_t

Link to comment
Share on other sites

  • 4 months later...

The modified invoice modul (pdf.php) is available on www.prestasoft.co.cc<br/><br/>This contain the seller information in top of the invoice.<br/><br/>If you have any idea with invoice, please ask it.

 

The link is unavailable. A nice feature would be to have the product image cover added to the invoice. In the new image file system like: p/4/5/6/456.jpg

Link to comment
Share on other sites

the solution for this problem is simple, instead of the logo on the top of your invoice, use an image with all of your shop's details (shop name,shop email,shop address) you can even create an image containing the logo and the details.

 

I agree that the simplest solution is to substitute the company logo by logo with company information. I also had the same idea. However the process is not so easy, since you have set the maximum height of invoice logo to 72 px, so the invoice logo with seller information looks like the attachment. So I tried to change the 72 px limit in fpdf.php

Original piece of code:

if($unit=='pt')
	$this->k=1;
elseif($unit=='mm')
	$this->k=72/25.4;
elseif($unit=='cm')
	$this->k=72/2.54;
elseif($unit=='in')
	$this->k=72;

Substitute:

if($unit=='pt')
	$this->k=1;
elseif($unit=='mm')
	$this->k=235/82.9;
elseif($unit=='cm')
	$this->k=235/8.29;
elseif($unit=='in')
	$this->k=235;

 

However, the result is still the same, like in the attached image.

 

Does anybody have any point?

post-282359-0-04928300-1314699262_thumb.jpg

Link to comment
Share on other sites

×
×
  • Create New...