Jump to content

[SOLVED - use the module!] I just can't edit the pdf invoice - anybody any idea why?


Recommended Posts

Hi,

I have searched throughout the whole forum and found all the answers I need on what and how to edit the pdf invoice to include additional information.

But no matter what I do - even the smallest change - it just doesn't like it. And I get the same error everytime. Even if I save the file to my desktop and reupload it without any changes I still get the same error message below.

FPDF error: Some data has already been output, can't send PDF file

Does anybody have any idea why or what I am missing? What can be the problem?

And why anyway does it have to be so complicated? Why can we not just add lines in the translations in the BO to add additional content. It is a must that Prestashop revise the pdf invoice format for future - because for what is essentially the most important document to output - it is pretty garbage I'm afraid.

Link to comment
Share on other sites

Now that's what I was hoping for - super. Downloaded and it works.

Only one thing is that it doesn't show correctly language characters that are different (ä) etc. And it doesn't have anywheere in the BO to translate - how can I correct the text, any ideas?

Link to comment
Share on other sites

Hi,

this bug is supposed to be corrected, for example it works for me with "é" "è" latin characters.
For your issue i suggest you modify the "jbx_custominvoice.php" file inside your module directory
then go to line 116 and try to change "iso-8859-1" by you language code.

Link to comment
Share on other sites

  • 3 weeks later...

You can find all translations in the Back Office (Tools - Translations). This one is Modules or Front Office - can't remember.

I have a problem that I have now added Paypal and now the pdf files made when paying through paypal duplicate the lines of text (VAT etc) which means the first line of the extra information is half off the page. Any idea how to correct this?

Since adding paypal what it does is now add the gift wrapping amounts across the bottom (horizontally) even though gift wrapping is already in the summing up total - how can i remove it so it doesn't show it twice?

Link to comment
Share on other sites

  • 7 months later...

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...