irmantus Posted October 17, 2018 Posted October 17, 2018 I have migrated from 1.6.20 prestashop to thirty bees 1.0.7 and everything looks ok except for invoices. Generated invoices have no logo image. I tried to reupload image, also tried different invoice templates but still no luck. Any ideas?
0 lesley Posted October 17, 2018 Posted October 17, 2018 Can you try uploading the image as a jpg, not a png and see if it works.
0 irmantus Posted October 17, 2018 Author Posted October 17, 2018 No luck. Tried jpg and even some random logo from internet. I did a quick debug at classes/pdf/PDF.php, echoing $template->getHeader() and I can see that image path is there but not sure why it's not working. Something with PDF rendering?
0 irmantus Posted October 18, 2018 Author Posted October 18, 2018 it does not like absolute path, when I manually add relative path or absolute URL instead of $logo_path in header.tpl then it works.
0 joel Posted February 10, 2019 Posted February 10, 2019 On 10/18/2018 at 1:14 PM, irmantus said: it does not like absolute path, when I manually add relative path or absolute URL instead of $logo_path in header.tpl then it works. Hello, What exactly did you do ? As I've a similar problem, where no logo appears on my invoices ..... they did in the beggining, but not anymore 😞 Thanks 🙂
0 GTSol Posted April 2, 2019 Posted April 2, 2019 I am having the same issue - any advice? I have a multistore and both invoices have no logo. Thanks
0 irmantus Posted April 2, 2019 Author Posted April 2, 2019 Open pdf/header.tpl file and edit line "{if $logo_path} ...", just change img src so it points to actual file of your logo, like so: {if $logo_path} <img src="../img/shop-logo_1452460446.jpg" style="width:{$width_logo}px; height:{$height_logo}px;" /> {/if} Hope that helps. 1
0 GTSol Posted April 2, 2019 Posted April 2, 2019 (edited) 29 minutes ago, irmantus said: Open pdf/header.tpl file and edit line "{if $logo_path} ...", just change img src so it points to actual file of your logo, like so: {if $logo_path} <img src="../img/shop-logo_1452460446.jpg" style="width:{$width_logo}px; height:{$height_logo}px;" /> {/if} Hope that helps. Thanks - Unfortunately, I have a multi-store so there are 2 x different Logos - so changing the main .tpl will force to use only single defined logo. Can this be done on a per theme basis by copying to theme/PDF folder? UPDATE: I just copied the PDF/header.tpl to theme/PDF/ with direct URL to logo and it works 🙂 Edited April 2, 2019 by GTSol
Question
irmantus
I have migrated from 1.6.20 prestashop to thirty bees 1.0.7 and everything looks ok except for invoices. Generated invoices have no logo image. I tried to reupload image, also tried different invoice templates but still no luck. Any ideas?
7 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now