acdc Posted July 14, 2013 Share Posted July 14, 2013 Hi and thank you for looking, how can I make the invoice logo bigger in pdf.php Many thanks Lee Link to comment Share on other sites More sharing options...
vekia Posted July 14, 2013 Share Posted July 14, 2013 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 More sharing options...
acdc Posted July 14, 2013 Author Share Posted July 14, 2013 Can't find pdf/header.tpl can you tell me in layman terms Thanks Lee Link to comment Share on other sites More sharing options...
Paulito Posted July 14, 2013 Share Posted July 14, 2013 Good morning You need to go to your Database via cpanel or ftp and find this file: public_html/your theme name/pdf/header.tpl See the attached images, it may make things clearer Paul Link to comment Share on other sites More sharing options...
acdc Posted July 14, 2013 Author Share Posted July 14, 2013 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 More sharing options...
Paulito Posted July 14, 2013 Share Posted July 14, 2013 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 More sharing options...
vekia Posted July 14, 2013 Share Posted July 14, 2013 that's right, you don't have to browse the /themes/ dir, the pdf directory is in your root dir of prestashop store Link to comment Share on other sites More sharing options...
acdc Posted July 14, 2013 Author Share Posted July 14, 2013 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 More sharing options...
vekia Posted July 14, 2013 Share Posted July 14, 2013 Sorry but checked in all my themes and no pdf folder you've go pdf directory in root dir of your prestashop Link to comment Share on other sites More sharing options...
acdc Posted July 14, 2013 Author Share Posted July 14, 2013 (edited) My version PrestaShop™ 1.4.8.2 root dir? Edited July 14, 2013 by acdc (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts