Jump to content
thirty bees forum
  • 0

No logo image in invoice PDF


Question

Posted

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

  • 0
Posted

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

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

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