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

#   How to display product image in invoice?

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 8 months ago [\#230806](#230806) by [manlui](/forum/user/40200-manlui "View manlui's Profile")  *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#230806 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")* was created by *[manlui](/forum/user/40200-manlui "View manlui's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

HI,
I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View?
Thanks!!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 8 months ago [\#230834](#230834) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#230834 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

You can try with that: Code:

&lt;?php $imageHelper = hikashop_get('helper.image'); if(!empty($product-&gt;images[0]-&gt;file_path) &amp;&amp; $config-&gt;get('thumbnail', 1) != 0) { $img = $imageHelper-&gt;getThumbnail($product-&gt;images[0]-&gt;file_path, array(50, 50), array('forcesize' =&gt; true, 'scale' =&gt; 'outside')); if($img-&gt;success) { echo '&lt;img src="'.$img-&gt;url.'" alt="" style="float:left;margin-top:3px;margin-bottom:3px;margin-right:6px;"/&gt;'; } } ?&gt;

in the file "invoice" of the view "order" via the menu Display&gt;Views
For example, before the line:
&lt;?php echo $product-&gt;order_product_name;?&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 7 months ago [\#232812](#232812) by [manlui](/forum/user/40200-manlui "View manlui's Profile")  Replied by *[manlui](/forum/user/40200-manlui "View manlui's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#232812 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

hi Nicolas, thanks for your help.
However, it doesnt work. There's still no product image in invoice.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

10 years 7 months ago [\#232818](#232818) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#232818 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

Which invoice are you talking about ? The PDF one ? The one the customer can print on the frontend ? The one the merchant can print on the backend ? Something else ?
Are you sure you're editing the view file for the correct template ?
Because that code is only for the invoice in the backend and will only work if you're editing the view file for your backend template.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yonge](/forum/user/42075-yonge "View yonge's Profile")**
- [![yonge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42075.png)](/forum/user/42075-yonge "View yonge's Profile")
- [ Offline](/forum/user/42075-yonge)

Less More

- Posts: 10
- Thank you received: 0
-
-

8 years 5 months ago [\#292197](#292197) by [yonge](/forum/user/42075-yonge "View yonge's Profile")  Replied by *[yonge](/forum/user/42075-yonge "View yonge's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292197 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

I am using HikaShop Business 2.6.3 and have the same problem. I added the codes in the invoice file of view of order as shown above, but nothing happened. Please help. Your help would be greatly appreciated!

thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)
-

8 years 5 months ago [\#292198](#292198) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292198 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hello,

Even if it was for "manlui", the previous questions are still pending.

> Which invoice are you talking about ? The PDF one ? The one the customer can print on the frontend ? The one the merchant can print on the backend ? Something else ?
> Are you sure you're editing the view file for the correct template ?

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yonge](/forum/user/42075-yonge "View yonge's Profile")**
- [![yonge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42075.png)](/forum/user/42075-yonge "View yonge's Profile")
- [ Offline](/forum/user/42075-yonge)

Less More

- Posts: 10
- Thank you received: 0
-
-

8 years 5 months ago [\#292236](#292236) by [yonge](/forum/user/42075-yonge "View yonge's Profile")  Replied by *[yonge](/forum/user/42075-yonge "View yonge's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292236 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

I am talking about the invoice that the merchant can print on the backend. The INVOICE file that I edited is shown below:

Display- View - invoice

Client: Back end
Template: isis
View: order
File: invoice

thanks again!

Have a great day!

- [ ![order&#95;2018-05-03.jpeg](/forum/attachment/43579) ](/forum/attachment/43579 "...018-05-03.jpeg") [ ](/forum/attachment/43579?download=1 "...018-05-03.jpeg")
- [ ![hikashop-view&#95;2018-05-03.jpeg](/forum/attachment/43580) ](/forum/attachment/43580 "...018-05-03.jpeg") [ ](/forum/attachment/43580?download=1 "...018-05-03.jpeg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

8 years 5 months ago [\#292239](#292239) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292239 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

Then please try to also change the line:
$order = $class-&gt;loadFullOrder($order_id);
to:
$order = $class-&gt;loadFullOrder($order_id, true);
in the file administrator/components/com_hikashop/views/order/view.html.php and that should help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yonge](/forum/user/42075-yonge "View yonge's Profile")**
- [![yonge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42075.png)](/forum/user/42075-yonge "View yonge's Profile")
- [ Offline](/forum/user/42075-yonge)

Less More

- Posts: 10
- Thank you received: 0
-
-

8 years 5 months ago [\#292270](#292270) by [yonge](/forum/user/42075-yonge "View yonge's Profile")  Replied by *[yonge](/forum/user/42075-yonge "View yonge's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292270 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi Nicolas,

Thanks for your quick reply!

I just made the change according to your suggestion, but the product images did not show up, instead, my all orders on backend invoice are missing.

Please help.

thanks again

- [ ![hikashop1.jpeg](/forum/attachment/43588) ](/forum/attachment/43588 "hikashop1.jpeg") [ ](/forum/attachment/43588?download=1 "hikashop1.jpeg")
- [ ![hikashop2.jpeg](/forum/attachment/43589) ](/forum/attachment/43589 "hikashop2.jpeg") [ ](/forum/attachment/43589?download=1 "hikashop2.jpeg")
- [ ![hikashop3.jpeg](/forum/attachment/43590) ](/forum/attachment/43590 "hikashop3.jpeg") [ ](/forum/attachment/43590?download=1 "hikashop3.jpeg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

8 years 5 months ago [\#292282](#292282) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292282 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

I don't see why it would do that.
So if you revert the change, do you confirm that you get back the products ?

I did test the change on my end, but that was on HikaShop 3.4.0, and it worked just fine. I had a look at the code of your version of HikaShop and didn't see why it wouldn't work the same.
I'm afraid it will require hiring a developer to help you with that customization in order to debug the issue.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yonge](/forum/user/42075-yonge "View yonge's Profile")**
- [![yonge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42075.png)](/forum/user/42075-yonge "View yonge's Profile")
- [ Offline](/forum/user/42075-yonge)

Less More

- Posts: 10
- Thank you received: 0
-
-

8 years 5 months ago [\#292296](#292296) by [yonge](/forum/user/42075-yonge "View yonge's Profile")  Replied by *[yonge](/forum/user/42075-yonge "View yonge's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292296 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hello Nicolas,

Thanks for your quick reply!

Before I move on to find a solution, can you please confirm I am using the right codes in INVOICE file that I edited as shown in the attachment.

Display- View - invoice
Client: Back end
Template: isis
View: order
File: invoice

Thanks again!

Have a wonderful one!

- [ ![invoice.jpeg](/forum/attachment/43605) ](/forum/attachment/43605 "invoice.jpeg") [ ](/forum/attachment/43605?download=1 "invoice.jpeg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

8 years 5 months ago [\#292314](#292314) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292314 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

That looks correct yes.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[yonge](/forum/user/42075-yonge "View yonge's Profile")**
- [![yonge's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar42075.png)](/forum/user/42075-yonge "View yonge's Profile")
- [ Offline](/forum/user/42075-yonge)

Less More

- Posts: 10
- Thank you received: 0
-
-

8 years 5 months ago [\#292332](#292332) by [yonge](/forum/user/42075-yonge "View yonge's Profile")  Replied by *[yonge](/forum/user/42075-yonge "View yonge's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#292332 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hello Nicolas,

Thank you so much!

Have a great day!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 56
- Thank you received: 1
-
-

8 years 4 months ago -  8 years 4 months ago [\#293281](#293281) by [trik84](/forum/user/15695-trik84 "View trik84's Profile")  Replied by *[trik84](/forum/user/15695-trik84 "View trik84's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#293281 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi Nicolas,

I've made the modifications to invoice file and to administrator/components/com_hikashop/views/order/view.html.php, but when I add the second parameter **true** to loadFullOrder method in invoice page inside the product lists i see these 2 error (I have PHP error reporting ON):

**Notice: Undefined variable: config in /home/siti/www.sushitalia.com/sushitalia.com/htdocs/administrator/templates/isis/html/com\_hikashop/order/invoice.php on line 170

Fatal error: Call to a member function get() on null in /home/siti/www.sushitalia.com/sushitalia.com/htdocs/administrator/templates/isis/html/com\_hikashop/order/invoice.php on line 170**

I have HikaShop 3.4.0 on Joomla 3.8.3

What is the problem ?

Many thanks

Last edit: 8 years 4 months ago by [trik84](/forum/user/15695-trik84 "View trik84's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 4 months ago [\#293297](#293297) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#293297 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hello,

In that case, you should probably add that line : Code:

$config = hikashop_config();

just before : Code:

$imageHelper = hikashop_get('helper.image');

And it should do the job.

Best regards,
Mohamed Thelji.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 56
- Thank you received: 1
-
-

8 years 4 months ago [\#293323](#293323) by [trik84](/forum/user/15695-trik84 "View trik84's Profile")  Replied by *[trik84](/forum/user/15695-trik84 "View trik84's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#293323 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi Mohamed,

right, it works now !!!

Many Thanks

The following user(s) said Thank You: [Philip](/forum/user/34318-philip "View Philip's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")**
- [![grayt7's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30010.jpg)](/forum/user/30010-grayt7 "View grayt7's Profile")
- [ Offline](/forum/user/30010-grayt7)

Less More

- Posts: 376
- Thank you received: 7
-
-
- [](http://www.identitywebdesign.com)
-

4 years 2 months ago -  4 years 2 months ago [\#343634](#343634) by [grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")  Replied by *[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#343634 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

I have used this code in the attach invoice plugin to successfully get the product images in the pdf invoice. It all worked fine, but then over the weekend, I started to receive this error:

An error has occurred.

2 Unable to get the size of the image

I'm not sure why this is the case? The URL path to the image is correct and works fine. Do you have any ideas please?

This is for EVERY image on any order. This isn't any particular image.

Last edit: 4 years 2 months ago by [grayt7](/forum/user/30010-grayt7 "View grayt7's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Philip](/forum/user/34318-philip "View Philip's Profile")**
- [![Philip's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar34318_2015-11-18-2.png)](/forum/user/34318-philip "View Philip's Profile")
- [ Offline](/forum/user/34318-philip)

Less More

- Posts: 4820
- Thank you received: 654
-
-

4 years 2 months ago -  4 years 2 months ago [\#343637](#343637) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#343637 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hello,

We will need more elements to better progress on your subject, can you provide these elements :
- Error **screenshot WITH** the Joomla Debug **activated** (and in **maximum** level)
- Did you do an **update** a week ago (HikaShop or else)?
- **OR** even a **customization** of the attach invoice plugin code?
**=&gt;** A test can be useful, process a try with the attach invoice **unpublished**, then you can see the result in **Backend order form listing** and by clicking the button invoice to have a preview.

Awaiting your precise returns to be able to progress on your subject.
Regards

Last edit: 4 years 2 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")**
- [![grayt7's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30010.jpg)](/forum/user/30010-grayt7 "View grayt7's Profile")
- [ Offline](/forum/user/30010-grayt7)

Less More

- Posts: 376
- Thank you received: 7
-
-
- [](http://www.identitywebdesign.com)
-

4 years 2 months ago [\#343658](#343658) by [grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")  Replied by *[grayt7](/forum/user/30010-grayt7 "View grayt7's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#343658 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

hi,

The edited file:

public_html/plugins/hikashop/attachinvoice/attachinvoice/invoice.php

With the attached code (image)

The error is also attached with debug etc turned on.

Yes removing the code makes the invoice work.

Hope you can help,

Many thanks

- [ ![cadeadded.png](/forum/attachment/55332) ](/forum/attachment/55332 "cadeadded.png") [ ](/forum/attachment/55332?download=1 "cadeadded.png")
- [ ![pdferror.png](/forum/attachment/55333) ](/forum/attachment/55333 "pdferror.png") [ ](/forum/attachment/55333?download=1 "pdferror.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

4 years 2 months ago [\#343664](#343664) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to display product image in invoice?](/forum/35-orders-management/882497-how-to-display-product-image-in-invoice#343664 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.8  HI, I want to show product image in invoice. What code should I add in the invoice file in Display -&gt; View? Thanks!!")*

Hi,

This error indicates that the image file is not found.
Can you confirm that the file is at the place the system is looking at ?
As you hide the beginning of the paths in your screenshot, I can't say for sure but it seems that it's missing the "public_html" part in the path of the image.
So you probably need to modify $newURL to prepent that folder to it or even prepend the URL of the website so that it uses a full URL and not a local relative path.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4MjQ5Ny1ob3ctdG8tZGlzcGxheS1wcm9kdWN0LWltYWdlLWluLWludm9pY2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.570 seconds

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

[](#top)
