Jump to content
thirty bees forum
  • 0

No logo image in invoice PDF


irmantus

Question

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?

Link to comment
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 🙂

Link to comment
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
Link to comment
Share on other sites

  • 0
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
Link to comment
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
×
×
  • Create New...