Jump to content

No logo on invoice pdf, Help


aliasali

Recommended Posts

After activating SSL certificates, we noticed that the logo no longer appears on the PDF. We are using prestashop 1.7.8.10 and php 7.3

What have we tried:

1. Logo for invoice re-uploaded
2. cache deletes backend
3. server restarted
4. regenerate images

Does anyone have an idea?

Edited by aliasali (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
On 12/13/2023 at 6:15 PM, justmeagain said:

Care to share solution?

The problem was after ssl enable, there was someting wrong of missing in the header.tpl 

We have add logo there:

<table style="width: 100%">
<tr>
    <td style="width: 50%">
        {if $logo_path}
            <img src="{$logo_path|replace:"https":"http"}" style="width:{$width_logo}px; height:{$height_logo}px;" />
        {/if}
    </td>
    <td style="width: 50%; text-align: right;">
        <table style="width: 100%">
            <tr>
                <td style="font-weight: bold; font-size: 14pt; color: #444; width: 100%;">{if isset($header)}{$header|escape:'html':'UTF-8'|upper}{/if}</td>
            </tr>
            <tr>
                <td style="font-size: 14pt; color: #9E9F9E">{$date|escape:'html':'UTF-8'}</td>
            </tr>
            <tr>
                <td style="font-size: 14pt; color: #9E9F9E">{$title|escape:'html':'UTF-8'}</td>
            </tr>
        </table>
    </td>
</tr>
</table>

Edited by aliasali (see edit history)
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...