Jump to content

How can i make the invoice logo bigger


Recommended Posts

go to the pdf/header.tpl

<td style="width: 50%">
 {if $logo_path}
  <img src="{$logo_path}" style="width:{$width_logo}px; height:{$height_logo}px;" />
 {/if}
</td>

 

define own width + height of the logo image

and also upload correct logo under preferences > themes tab in your back office

 

if you're looking the php code, here it is - the function related to the {$width_logo} and {$height_logo} variables from php file: pdf/HTMLTemplate.php

 $this->smarty->assign(array(
  'logo_path' => $path_logo,
  'img_ps_dir' => 'http://'.Tools::getMediaServer(_PS_IMG_)._PS_IMG_,
  'img_update_time' => Configuration::get('PS_IMG_UPDATE_TIME'),
  'title' => $this->title,
  'date' => $this->date,
  'shop_name' => $shop_name,
  'width_logo' => $width,
  'height_logo' => $height
 ));

Link to comment
Share on other sites

I don't have a pdf folder in my themes folder all I can see is header.tpl in themes if I change this it will only make the shop logo bigger and not the invoice logo?

 

Sorry for being a idiot

Link to comment
Share on other sites

Good morning,

 

The way i sent you then you should not be able to see header.tp

 

So, lets assume you are using a cpanel:

 

Go to your: cpanel > file manager > on the left you should see public_html > click the +button > scroll down to the name of your website > click the +button > scroll down to pdf > click pdf > a screen should appear on your right with header.tpl (pdf header.tpl

 

This will be the same if using ftp

 

Then do as vekia has suggested

 

Hope this helps

 

Paul

Link to comment
Share on other sites

Good morning,

 

The way i sent you then you should not be able to see header.tp

 

So, lets assume you are using a cpanel:

 

Go to your: cpanel > file manager > on the left you should see public_html > click the +button > scroll down to the name of your website > click the +button > scroll down to pdf > click pdf > a screen should appear on your right with header.tpl (pdf header.tpl

 

This will be the same if using ftp

 

Then do as vekia has suggested

 

Hope this helps

 

Paul

Sorry but checked in all my themes and no pdf folder
Link to comment
Share on other sites

×
×
  • Create New...