Jump to content

The company’s address disappeared from the pdf invoice


Recommended Posts

  • 1 year later...
  • 2 years later...

Hi,

I have NEVER thought of this but it really differs from 1.6 and 1.7, the store details in the header, first column, isn't there in Prestashop 1.7.

Any official solution how to achieve the same results as in 1.6? Can it be changed in backend?

Best regards,

Link to comment
Share on other sites

  • 1 year later...
On 3/12/2022 at 3:25 AM, Jontee said:

Hi,

I have NEVER thought of this but it really differs from 1.6 and 1.7, the store details in the header, first column, isn't there in Prestashop 1.7.

Any official solution how to achieve the same results as in 1.6? Can it be changed in backend?

Best regards,

Maybe a bit late but you only have to edit one file (use ftp or filecommander in control center of your hosting provider)

First find this code in root pdf/delivery-slip.addresses-tab.tpl and copy it

<td width="33%"><span class="bold"> </span><br/><br/>
            {$order_invoice->shop_address}
        </td>

Then open invoice.addresses-tab.tpl and paste the code just above delivery_address, now it looks like this

<table id="addresses-tab" cellspacing="0" cellpadding="0">
    <tr>
        <td width="33%"><span class="bold"> </span><br/><br/>
            {$order_invoice->shop_address}
        </td>
        <td width="50%">{if $delivery_address}<span class="bold">{l s='Delivery Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
                {$delivery_address}
            {/if}
        </td>
        <td width="50%"><span class="bold">{l s='Billing Address' d='Shop.Pdf' pdf='true'}</span><br/><br/>
                {$invoice_address}
        </td>
    </tr>
</table>

Last but not least change 50% to 33% and save the file. That's it
Maybe you have to clear cache and rebuild files.

Regards,
Johan

Link to comment
Share on other sites

  • 2 months later...

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