[Skip to main content](#vessel-content)

#   Company logo in send pdf invoice plugin

##

- **[Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")**
- [![Astrostar59's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7946-astrostar59 "View Astrostar59's Profile") Topic Author
- [ Offline](/forum/user/7946-astrostar59)

Less More

- Posts: 14
- Thank you received: 2
-
-

11 years 9 months ago -  11 years 9 months ago [\#186323](#186323) by [Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")  *[Company logo in send pdf invoice plugin](/forum/27-checkout/874201-company-logo-in-send-pdf-invoice-plugin#186323 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Safari 7 Firefox 34  I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?  Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.  Update (I found an old post here about this) I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??")* was created by *[Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")*

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 2.5.8
-- PHP version -- : 5.3.29
-- Browser(s) name and version -- : Safari 7 Firefox 34

I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?

Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.

**Update (I found an old post here about this)**
I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??

Last edit: 11 years 9 months ago by [Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDIwMS1jb21wYW55LWxvZ28taW4tc2VuZC1wZGYtaW52b2ljZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago -  11 years 9 months ago [\#186326](#186326) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Company logo in send pdf invoice plugin](/forum/27-checkout/874201-company-logo-in-send-pdf-invoice-plugin#186326 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Safari 7 Firefox 34  I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?  Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.  Update (I found an old post here about this) I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??")*

Hi,

The best is to create an override for the "invoice.php" of the pdf invoice plugin.
Please see these threads:
[ www.hikashop.com/forum/2-general-talk-ab...nvoice-pdf-logo.html](http://www.hikashop.com/forum/2-general-talk-about-hikashop/58752-invoice-pdf-logo.html)
[ www.hikashop.com/forum/4-how-to/66908-ad...o-attachinvoice.html](http://www.hikashop.com/forum/4-how-to/66908-adding-an-image-to-attachinvoice.html)

I don't see why the PDF wouldn't be sent after the modification of the invoice.php file. If there was an error created by the change, you shouldn't even get the email. But download again the PDF invoice install package to replace the invoice.php with the default one and see if that fixes the issue. If so then it means that it really came from your modifications and we would need to know what exact modifications you did to be able to tell you what's wrong with them.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Last edit: 11 years 9 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDIwMS1jb21wYW55LWxvZ28taW4tc2VuZC1wZGYtaW52b2ljZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")**
- [![Astrostar59's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7946-astrostar59 "View Astrostar59's Profile") Topic Author
- [ Offline](/forum/user/7946-astrostar59)

Less More

- Posts: 14
- Thank you received: 2
-
-

11 years 9 months ago -  11 years 9 months ago [\#186499](#186499) by [Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")  Replied by *[Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")* on topic *[Company logo in send pdf invoice plugin](/forum/27-checkout/874201-company-logo-in-send-pdf-invoice-plugin#186499 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Safari 7 Firefox 34  I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?  Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.  Update (I found an old post here about this) I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??")*

Hello Jerome
I sent a reply to the email that I got from you with the post above. I will post here as well to be sure you get it.

I read those posts, and I have only added my logo jpg (11K) directly under the Invoice number, so in white space. I used http full path to the image but it won't load in invoice as a pdf sent via the 'order completed' email, or when I go into 'orders' in admin and click the invoice tab on one of my recent orders. In that case it says Error 6 unable to load image .......

Here is my code (top part of the doc) in the invoice.php. I have not altered anything other than add the image.
Please can you help? Code:

&lt;?php /** * @copyright Copyright (C) 2009-2012 ACYBA SARL - All rights reserved. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU/GPL */ defined('_JEXEC') or die('Restricted access'); ?&gt; &lt;style type="text/css"&gt; &lt;!-- .invoicetitle{ text-align:center;font-size:30px; padding-top:40px;padding-bottom:40px} legend { padding:5px 10px; background-color:#5471B5;color:white;font-weight:bold;border-color:#ccc} fieldset { padding:10px; border-color:#ccc;} div.date{text-align:right;color:#333;} .storeaddress{ color:#333; } .addresses{padding-top:50px;} .addresses td{padding-left:50px;} .addresses fieldset {float:left;} table.products{margin:auto;margin-top:60px;width:580px;border-collapse:collapse} .price{text-align:center;} .products td, .products th{border:1px solid #ccc;padding:7px 4px;} .products th{background-color:#5471B5;color:white;} td.newarea{text-align:right;padding-right:20px;} tr.total{font-weight:bold;} .products tr.limitation td{background-color:#ccc;padding:1px 0px;} .hikashop_order_custom_fields_fieldset{margin-top : 20px;} .footer{font-size:10px;color:#aaa;text-align:center;} --&gt; &lt;/style&gt; &lt;page style="font-size: 12px" backtop="14mm" backbottom="14mm" backleft="10mm" backright="10mm"&gt; &lt;page_footer&gt; &lt;div class="footer"&gt; &lt;?php echo str_replace(array("\r\n","\n","\r"),array('&lt;br/&gt;','&lt;br/&gt;','&lt;br/&gt;'),$this-&gt;params-&gt;get('footer')); ?&gt; &lt;/div&gt; &lt;/page_footer&gt; &lt;div class="storeaddress"&gt; &lt;?php $store = str_replace(array("\r\n","\n","\r"),array('&lt;br/&gt;','&lt;br/&gt;','&lt;br/&gt;'),$config-&gt;get('store_address','')); if(JText::_($store)!=$store){ $store = JText::_($store); } echo $store; ?&gt; &lt;/div&gt; &lt;p&gt; &lt;?php if(empty($order-&gt;order_invoice_number)){ $order-&gt;order_invoice_number = $order-&gt;order_number; } if(empty($order-&gt;order_invoice_created)){ $order-&gt;order_invoice_created = $order-&gt;order_created; } ?&gt; &lt;/p&gt; &lt;p&gt;&lt;img src="http://www.glasswipeboardco.co.uk/design_images/logo.jpg"/&gt;&lt;/p&gt; &lt;div class="invoicetitle"&gt;&lt;?php echo JText::_('INVOICE').' n° '.$order-&gt;order_invoice_number; ?&gt;&lt;/div&gt; &lt;div class="date"&gt;&lt;?php echo JText::_('DATE').': '.hikashop_getDate($order-&gt;order_invoice_created,'%d %B %Y ');?&gt;&lt;/div&gt;

Last edit: 11 years 9 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile"). Reason: [code] is nice !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDIwMS1jb21wYW55LWxvZ28taW4tc2VuZC1wZGYtaW52b2ljZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 9 months ago [\#186506](#186506) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Company logo in send pdf invoice plugin](/forum/27-checkout/874201-company-logo-in-send-pdf-invoice-plugin#186506 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Safari 7 Firefox 34  I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?  Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.  Update (I found an old post here about this) I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??")*

Hi,

A path is not an url ; the two things are very different.

An absolute path is a path in your server, something to access to a file.
Like : "/var/www/mywebsite/images/myimage.jpg"

You can also use a relative path where the start point will be the base of your joomla website.
Like : "/images/myimage.jpg"

Kind regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDIwMS1jb21wYW55LWxvZ28taW4tc2VuZC1wZGYtaW52b2ljZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")**
- [![Astrostar59's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/7946-astrostar59 "View Astrostar59's Profile") Topic Author
- [ Offline](/forum/user/7946-astrostar59)

Less More

- Posts: 14
- Thank you received: 2
-
-

11 years 9 months ago [\#186673](#186673) by [Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")  Replied by *[Astrostar59](/forum/user/7946-astrostar59 "View Astrostar59's Profile")* on topic *[Company logo in send pdf invoice plugin](/forum/27-checkout/874201-company-logo-in-send-pdf-invoice-plugin#186673 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Safari 7 Firefox 34  I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?  Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.  Update (I found an old post here about this) I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??")*

Hi Jerome
Yes, I tried both paths. I have it set now as:
**/images/logo.jpg in the 'invoice.php.**

But it won't work. I get in Admin:

*6 - An error has occurred.

ERROR n°6 : Impossible to load the image [ www.glasswipeboardco.co.uk/images/logo.jpg](http://www.glasswipeboardco.co.uk/images/logo.jpg)

Return to Control Panel*

Can you supply me the doc 'invoice.php' with an image dropped into the code. Anywhere near the top of the page is fine.
I can then use that. I have drawn a blank here, it is refusing to work for me........[ www.hikashop.com/media/kunena/emoticons/dizzy.png](http://www.hikashop.com/media/kunena/emoticons/dizzy.png)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDIwMS1jb21wYW55LWxvZ28taW4tc2VuZC1wZGYtaW52b2ljZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

11 years 9 months ago [\#186675](#186675) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Company logo in send pdf invoice plugin](/forum/27-checkout/874201-company-logo-in-send-pdf-invoice-plugin#186675 "-- HikaShop version -- : 2.3.5 -- Joomla version -- : 2.5.8 -- PHP version -- : 5.3.29 -- Browser(s) name and version -- : Safari 7 Firefox 34  I just bought the Hikashop 'send pdf with order' plugin. It works but the layout of the pdf is poor. Is there a way to include the company header or company logo in the pdf?  Is there a way to up the size of the text? I updated the CSS php doc and got the text to go bold but the size isn't going bigger even though I set front size from 10 to 15 px.  Update (I found an old post here about this) I went into 'attach invoice' folder and the doc 'invoice.php' And added a simple table at the top with my company logo. I set image paths as full http url. The pdf now does not appear on the sent email. Any ideas??")*

Hi,

Here is a test I made on my end:
[ take.ms/zgnR4](http://take.ms/zgnR4)
And you can see it's really easy to add in the invoice.php file:
[ take.ms/L8eyJ](http://take.ms/L8eyJ)
If that doesn't work, the it must come with the configuration of your web server not allowing the PDF library to load the image URL. I would recommend to contact your server administrator/hosting company for help to allow the website to be able to load the images like that.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg3NDIwMS1jb21wYW55LWxvZ28taW4tc2VuZC1wZGYtaW52b2ljZS1wbHVnaW4/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.078 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
