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

#   Invoice display error in line 86 show.php

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

15 years 11 months ago [\#3114](#3114) by [derka](/forum/user/448-derka "View derka's Profile")  *[Invoice display error in line 86 show.php](/forum/3-bug-report/3114-invoice-display-error-in-line-86-show-php#3114 "Hey  I have it set up so users don't enter any billing or shipping address (they send that to me through an encrypted form) Checkout works fine, but if you view your order/invoice i get this error right underneath where it says 'Billing Address' on the invoice  Warning: Invalid argument supplied for foreach() in /home/domains/public&#95;html/components/com&#95;hikashop/views/order/tmpl/show.php on line 86  I haven't modified show.php at all, just wondering if it's because i have no address registration through joomla/hikashop thkx")* was created by *[derka](/forum/user/448-derka "View derka's Profile")*

Hey

I have it set up so users don't enter any billing or shipping address (they send that to me through an encrypted form)
Checkout works fine, but if you view your order/invoice i get this error right underneath where it says 'Billing Address' on the invoice

Warning: Invalid argument supplied for foreach() in /home/domains/public_html/components/com_hikashop/views/order/tmpl/show.php on line 86

I haven't modified show.php at all, just wondering if it's because i have no address registration through joomla/hikashop thkx

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMTE0LWludm9pY2UtZGlzcGxheS1lcnJvci1pbi1saW5lLTg2LXNob3ctcGhwP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 11 months ago [\#3119](#3119) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invoice display error in line 86 show.php](/forum/3-bug-report/3114-invoice-display-error-in-line-86-show-php#3119 "Hey  I have it set up so users don't enter any billing or shipping address (they send that to me through an encrypted form) Checkout works fine, but if you view your order/invoice i get this error right underneath where it says 'Billing Address' on the invoice  Warning: Invalid argument supplied for foreach() in /home/domains/public&#95;html/components/com&#95;hikashop/views/order/tmpl/show.php on line 86  I haven't modified show.php at all, just wondering if it's because i have no address registration through joomla/hikashop thkx")*

Hi,

Yes, that's indeed because you don't have the registration step and because on your hosting you ahve the display of errors activated.
The best will be to completely removing the billing address part since anyway you don't have addresses. We have done modifications to that file in that way and it will be available for next version.

In the mean time, you can replace that file by the one in the archive in this post

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

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 10 months ago -  15 years 10 months ago [\#3324](#3324) by [tmetti](/forum/user/473-tmetti "View tmetti's Profile")  Replied by *[tmetti](/forum/user/473-tmetti "View tmetti's Profile")* on topic *[Re: Invoice display error in line 86 show.php](/forum/3-bug-report/3114-invoice-display-error-in-line-86-show-php#3324 "Hey  I have it set up so users don't enter any billing or shipping address (they send that to me through an encrypted form) Checkout works fine, but if you view your order/invoice i get this error right underneath where it says 'Billing Address' on the invoice  Warning: Invalid argument supplied for foreach() in /home/domains/public&#95;html/components/com&#95;hikashop/views/order/tmpl/show.php on line 86  I haven't modified show.php at all, just wondering if it's because i have no address registration through joomla/hikashop thkx")*

Hi,

I am also seeing the same issue. I don't request an address or a shipping method from my buyer since we deliver products electronically. I upgraded my shop.php to the one you provided ,but I am seeing the following errors when my customers check their order status.

Billing address
Warning: Invalid argument supplied for foreach() in ......./components/com_hikashop/views/order/tmpl/show.php on line 77

Shipping address
Warning: Invalid argument supplied for foreach() in ......./components/com_hikashop/views/order/tmpl/show.php on line 94

Last edit: 15 years 10 months ago by [tmetti](/forum/user/473-tmetti "View tmetti's Profile").

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

15 years 10 months ago [\#3325](#3325) by [tmetti](/forum/user/473-tmetti "View tmetti's Profile")  Replied by *[tmetti](/forum/user/473-tmetti "View tmetti's Profile")* on topic *[Re: Invoice display error in line 86 show.php](/forum/3-bug-report/3114-invoice-display-error-in-line-86-show-php#3325 "Hey  I have it set up so users don't enter any billing or shipping address (they send that to me through an encrypted form) Checkout works fine, but if you view your order/invoice i get this error right underneath where it says 'Billing Address' on the invoice  Warning: Invalid argument supplied for foreach() in /home/domains/public&#95;html/components/com&#95;hikashop/views/order/tmpl/show.php on line 86  I haven't modified show.php at all, just wondering if it's because i have no address registration through joomla/hikashop thkx")*

Ok, I was able to fix the issue by changing:

&lt;?php if(!empty($this-&gt;element-&gt;billing_address)){ ?&gt;

to:

&lt;?php if(!empty($this-&gt;element-&gt;billing_address-&gt;address_country)){ ?&gt;

I just picked a NULL var in the billing_address dump.

You may want to include my patch , or a similar one in your next update.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8zMTE0LWludm9pY2UtZGlzcGxheS1lcnJvci1pbi1saW5lLTg2LXNob3ctcGhwP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

15 years 10 months ago [\#3327](#3327) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Invoice display error in line 86 show.php](/forum/3-bug-report/3114-invoice-display-error-in-line-86-show-php#3327 "Hey  I have it set up so users don't enter any billing or shipping address (they send that to me through an encrypted form) Checkout works fine, but if you view your order/invoice i get this error right underneath where it says 'Billing Address' on the invoice  Warning: Invalid argument supplied for foreach() in /home/domains/public&#95;html/components/com&#95;hikashop/views/order/tmpl/show.php on line 86  I haven't modified show.php at all, just wondering if it's because i have no address registration through joomla/hikashop thkx")*

That's actually a different issue. Apparently you disabled/removed all the custom address fields which resulted in these warnings.We will correct it for next release.

Thanks for your report.

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

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