Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
irmantus

No logo image in invoice PDF

Question

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?

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0
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 🙂

Share this post


Link to post
Share on other sites
  • 0

I am having the same issue - any advice? I have a multistore and both invoices have no logo.

 

Thanks 

Share this post


Link to post
Share on other sites
  • 0

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.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
Posted (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 by GTSol

Share this post


Link to post
Share on other sites

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

×