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

#   Adding an image to attachinvoice

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 1 month ago [\#66908](#66908) by [rossdesigns](/forum/user/7055-rossdesigns "View rossdesigns's Profile")  *[Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#66908 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")* was created by *[rossdesigns](/forum/user/7055-rossdesigns "View rossdesigns's Profile")*

I am having difficulty adding an image to the attachinvoice. The image resides at [ www.dingospirit.net/images/invoice/Dingo\_logo\_rego\_200.jpg](http://www.dingospirit.net/images/invoice/Dingo_logo_rego_200.jpg)

I have used the following in the invoice.php of attachinvoice:
&lt;img src="[ www.dingospirit.net/images/invoice/Dingo\_logo\_rego\_200.jpg"/](http://www.dingospirit.net/images/invoice/Dingo_logo_rego_200.jpg%22/)&gt;

This results in the invoice not being attached to the order_status_notification email when the order is changed to confirmed.

Without the &lt;img src=.../&gt; the invoice is attached to the confirmation email.

PS. I am using Joomla! version, 2.5.7

*This attachment is hidden for guests.
Please log in or register to see it.*

Thanks,
Geoff

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

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

Less More

- Posts: 83
- Thank you received: 10
-
-

14 years 1 month ago [\#66910](#66910) by [jrod](/forum/user/8164-jrod "View jrod's Profile")  Replied by *[jrod](/forum/user/8164-jrod "View jrod's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#66910 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

&lt;img src="/images/invoice/Dingo_logo_rego_200.jpg"/&gt;

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 1 month ago [\#66923](#66923) by [rossdesigns](/forum/user/7055-rossdesigns "View rossdesigns's Profile")  Replied by *[rossdesigns](/forum/user/7055-rossdesigns "View rossdesigns's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#66923 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

Thanks for the quick reply. Unfortunately this resulted in the invoice not being attached to the confirmation email.

Geoff

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

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

Less More

- Posts: 83
- Thank you received: 10
-
-

14 years 1 month ago [\#66929](#66929) by [jrod](/forum/user/8164-jrod "View jrod's Profile")  Replied by *[jrod](/forum/user/8164-jrod "View jrod's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#66929 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

can you try removing the last back-slash

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

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

Less More

- Posts: 16
- Thank you received: 0
-
-

14 years 1 month ago [\#67049](#67049) by [rossdesigns](/forum/user/7055-rossdesigns "View rossdesigns's Profile")  Replied by *[rossdesigns](/forum/user/7055-rossdesigns "View rossdesigns's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#67049 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

Hi,

Unfortunately removing the back-slash has not fixed the problem either.

I had thought the problem might be linked to the fact that I'm using Joomla 2.5. I have read somewhere else on the forum that Hikashop is having some problems with linking data in the order_status_notification email. But I have managed to add the logo image to the order_status_notification email using:
&lt;img src="images/invoice/Dingo_logo_rego_200.jpg"/&gt;

Has anyone else placed an image on the attachinvoice?

Thanks,
Geoff

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

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

Less More

- Posts: 83
- Thank you received: 10
-
-

14 years 1 month ago [\#67055](#67055) by [jrod](/forum/user/8164-jrod "View jrod's Profile")  Replied by *[jrod](/forum/user/8164-jrod "View jrod's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#67055 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

hmmm....... I just tried, and I also can't include an image.

If there is no image, then the invoice attaches to the confirmed email. With an image, there is no attachment.

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

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

Less More

- Posts: 83
- Thank you received: 10
-
-

14 years 1 month ago -  14 years 1 month ago [\#67056](#67056) by [jrod](/forum/user/8164-jrod "View jrod's Profile")  Replied by *[jrod](/forum/user/8164-jrod "View jrod's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#67056 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

scratch that,
I just got it to work, but I used the full url of the image including http: //www infront

(no spaces, it just won't let me type it in the forum)

Last edit: 14 years 1 month ago by [jrod](/forum/user/8164-jrod "View jrod's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2OTA4LWFkZGluZy1hbi1pbWFnZS10by1hdHRhY2hpbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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
-
-

14 years 1 month ago [\#67079](#67079) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#67079 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

Yes, you need to enter the full URL of the image as the PDF generation library that we're using cannot handle relative links.

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

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

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 2 months ago -  12 years 2 months ago [\#167408](#167408) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#167408 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

hi there, just found this post after trying for ages to attach the image...

i am using the full url like this:
&lt;img src="[ subdomain.domain.de/templates/templatename/images/logo.svg](http://subdomain.domain.de/templates/templatename/images/logo.svg)" alt="logo" height="100" width="120"&gt;
but getting still the following error:

6 ERROR n°6 : Impossible to load the image [ subdomain.domain.de/templates/templatename/images/logo.svg](http://subdomain.domain.de/templates/templatename/images/logo.svg)

(EDIT: in both URLs the h t t p : / / is of course included, it has been somehow stripped off this post...)

any idea what the trouble could be?
any help appreciated...

PS.
-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.0

Last edit: 12 years 2 months ago by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2OTA4LWFkZGluZy1hbi1pbWFnZS10by1hdHRhY2hpbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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)
-

12 years 2 months ago -  12 years 2 months ago [\#167411](#167411) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#167411 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

Hi,

As explained in the previous post, you have ot put a relative path, you should put an url (so, no domain name).

Regards,

---

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

Last edit: 12 years 2 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

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

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 2 months ago -  12 years 2 months ago [\#167833](#167833) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#167833 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

sorry, i dont understand this... the previous post from nicolas states clearly:

> *Yes, you need to enter **the full URL** of the image as the PDF generation library that we're using cannot handle relative links.*

please clarify...
*...put an url (so, no domain name)... ???*
AFAIK a domain name is part of an URL

BTW: i tried also the following both
"/templates/templatename/images/logo.svg"
"templates/templatename/images/logo.svg"
i always get ERROR n°6 : Impossible to load the image h t t p : / / subdomain.domain.tld/templates/templatename/images/logo.svg

Last edit: 12 years 2 months ago by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2OTA4LWFkZGluZy1hbi1pbWFnZS10by1hdHRhY2hpbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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
-
-

12 years 2 months ago [\#167855](#167855) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#167855 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

Hi,

The problem here is not the path of the image but the fact that you're trying to use a SVG image.
The version of TCPDF used by the plugin doesn't support SVG img tags properly as far as I can see.
Try to include it manually with the ImageSVG function as shown in this example:
[ www.tcpdf.org/examples/example\_058.phps](http://www.tcpdf.org/examples/example_058.phps)

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

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

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 2 months ago -  12 years 2 months ago [\#167971](#167971) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#167971 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

thanks for the suggestion, but before trying a blown up solution, i thought i could try using the PNG or JPG of the logo, which i also have in this folder. so here is a little sum-up of all my tests, none of them worked, no matter if SVG/PNG/JPG:

**SVG:**Code:

&lt;img src="http://subdomain.domain.tld/templates/templatename/images/logo.svg" alt="logo" height="100" width="120"/&gt; &lt;img src="/templates/templatename/images/logo.svg" alt="logo" height="100" width="120"/&gt; &lt;img src="templates/templatename/images/logo.svg" alt="logo" height="100" width="120"/&gt;

**PNG**Code:

&lt;img src="http://subdomain.domain.tld/templates/templatename/images/logo.png" alt="logo" height="100" width="120"/&gt; &lt;img src="/templates/templatename/images/logo.png" alt="logo" height="100" width="120"/&gt; &lt;img src="templates/templatename/images/logo.png" alt="logo" height="100" width="120"/&gt;

**JPG**Code:

&lt;img src="http://subdomain.domain.tld/templates/templatename/images/logo.jpg" alt="logo" height="100" width="120"/&gt; &lt;img src="/templates/templatename/images/logo.jpg" alt="logo" height="100" width="120"/&gt; &lt;img src="templates/templatename/images/logo.jpg" alt="logo" height="100" width="120"/&gt;

...also tried all combinations without the slash at the end, ***...width="120"&gt;*** because i read somewhere in your forum this might cause trouble = again, it doesnt work either...

so i can say it is not due to the fact that i was trying to use a SVG...
any idea?

Last edit: 12 years 2 months ago by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2OTA4LWFkZGluZy1hbi1pbWFnZS10by1hdHRhY2hpbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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
-
-

12 years 2 months ago [\#167980](#167980) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#167980 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

Relative links don't work so the fact that the two last tries don't work is normal.
For the URL, you need to make sure that the allow_url_fopen parameter of your php.ini is activated so that the images can be retrieved.
Also, what you can try is to enter the full path of the file on your web server. Something like that : /home/user/var/www/templates/templatename/images/logo.png

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

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

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 2 months ago [\#168207](#168207) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#168207 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

i was confused by jeromes answer (...you have to put a relative path...) so i tried all possible solutions...

the /home/user/var/www/templates/templatename/images/logo.png did not work...
i tired to use it like this:
&lt;img src="/home/user/var/www/templates/templatename/images/logo.png" /&gt;
because this didnt work i tried also this
&lt;img src="home/user/var/www/templates/templatename/images/logo.png" /&gt;
and this
&lt;img src="[ subdomain.domain.tld/home/user/var/www/t...name/images/logo.png](http://subdomain.domain.tld/home/user/var/www/templates/templatename/images/logo.png)" /&gt;

(of course i changed in both cases "/home/user/var/www/" by the value i can see in joomla&gt;system information&gt;configuration file&gt;log_path : ...obviously without "logs" at the end!

did a make a mistake???

tomorrow i can check if i can enable allow_url_fopen on the server, but only if it is possible to set allow_url_include to OFF!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2OTA4LWFkZGluZy1hbi1pbWFnZS10by1hdHRhY2hpbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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
-
-

12 years 2 months ago [\#168218](#168218) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#168218 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

The first one is correct if you replaced the /home/user/var/www/ part. So I don't know why it wouldn't work.
Lets see with the normal URL [ subdomain.domain.tld/templates/templatename/images/logo.png](http://subdomain.domain.tld/templates/templatename/images/logo.png) and the allow_url_fopen option activated (you have have the other turned off of course).

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

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

Less More

- Posts: 154
- Thank you received: 4
-
-

12 years 2 months ago -  12 years 2 months ago [\#168297](#168297) by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")  Replied by *[olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile")* on topic *[Re: Adding an image to attachinvoice](/forum/4-how-to/66908-adding-an-image-to-attachinvoice#168297 "I am having difficulty adding an image to the attachinvoice. The image resides at   www.dingospirit.net/images/invoice/Dingo&#95;logo&#95;rego&#95;200.jpg  I have used the following in the invoice.php of attachinvoice:   This results in the invoice not being attached to the order&#95;status&#95;notification email when the order is changed to confirmed.  Without the  the invoice is attached to the confirmation email.  PS. I am using Joomla! version, 2.5.7  Thanks, Geoff")*

allow_url_fopen did the trick!

for anyone interested as short summary of how i got this to work:

-- HikaShop version -- : 2.3.2
-- Joomla version -- : 3.3.0
-- changed **allow\_url\_fopen** from OFF to ON
(add the line **allow\_url\_fopen = On** inside a **php5.ini** and save it in root)
**ATTENTION!!!** = for security reasons, be aware that **allow\_url\_include** should be set to OFF!!! (this should be the standard setting)
-- inside **plugins/hikashop/attachinvoice/attachinvoice/invoice.php** i used a relative path: Code:

&lt;img src="/templates/templatename/images/logo.png" /&gt;

-- the same works with a JPG
-- SVG unfortunately does not work, but nicolas posted a workaround i havent checked yet...

Last edit: 12 years 2 months ago by [olivnewton](/forum/user/9482-olivnewton "View olivnewton's Profile").

The following user(s) said Thank You: [Jerome](/forum/user/80-jerome "View Jerome's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzY2OTA4LWFkZGluZy1hbi1pbWFnZS10by1hdHRhY2hpbnZvaWNlP3RtcGw9bWFya2Rvd24=) 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.121 seconds

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