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:
- Connect via FTP, then find the file classes/pdf/HTMLTemplate.php
- Near linei 108, find the getLogo() function
- 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