PrestaShop does not generate proforma invoice

In the order preview, you can generate a proforma invoice. This option often generates an error: Invoice: TCPDF ERROR: [Image] [...], which occurs in some server configurations and has not been patched until version 1.6.1.5. This short post will tell you exactly what you need to do to make proforma invoices generate correctly.

If your store generates an error"Invoice: TCPDF ERROR: [Image] [...]" instead of a proforma invoice, where [...] is the path of the error file, you should:

  1. Connect via FTP, then find the file classes/pdf/HTMLTemplate.php
  2. Near linei 108, find the getLogo() function
  3. Replace"return $logo;" with"return $_SERVER['HTTP_HOST'].$logo;".

Done, proforma invoices will be generated correctly!

If you will need professional support and assistance in operating and expanding your PrestaShop, please contact us.

PrestaShow team

Comments (0)
from 0

There are no comments. Be the first!

No entries yet.