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

#   custom\_fields.php on line 13 - Additional informat

##

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#781](#781) by [seociable](/forum/user/217-seociable "View seociable's Profile")  *[custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#781 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")* was created by *[seociable](/forum/user/217-seociable "View seociable's Profile")*

When in checkout i got this message:

**Additional information
Warning: Invalid argument supplied for foreach() in ../public\_html/components/com\_hikashop/views/checkout/tmpl/custom\_fields.php on line 13**

Can´t click on "Next" either - just reload checkout

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODEtY3VzdG9tLWZpZWxkcy1waHAtb24tbGluZS0xMy1hZGRpdGlvbmFsLWluZm9ybWF0P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

15 years 11 months ago [\#782](#782) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#782 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Hi,

To remove the warning you can just edit the file components/com_hikashop/views/checkout/tmpl/fields.php and change the code Code:

$this-&gt;setLayout('custom_fields'); $this-&gt;type = 'order'; echo $this-&gt;loadTemplate();

by the code Code:

if(!empty($this-&gt;extraFields['order'])){ $this-&gt;setLayout('custom_fields'); $this-&gt;type = 'order'; echo $this-&gt;loadTemplate(); }

Now, it has nothing to do with the fact that when you click on next it reloads the page without displaying the next step. Normally, when that happens either that was because something changed in the order (like for example if you select a shipping method or something like that), or because there is a problem and it displays you an error message that you can't see because your template does not include the joomla messaging system: [ www.hikashop.com/support/documentation/61.html#messages](http://www.hikashop.com/support/documentation/61.html#messages)

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#784](#784) by [seociable](/forum/user/217-seociable "View seociable's Profile")  Replied by *[seociable](/forum/user/217-seociable "View seociable's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#784 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Thanks Nicolas for fast reply!

Error message is gone - but i now understand i "need" it in order to see whats wrong.
Unfortunately I don´t get the message to show - i have tried Rhuk milkway and purity but none of them show me the message.

I will try to go thru the settings and hope it lets me continue, thanks for help!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODEtY3VzdG9tLWZpZWxkcy1waHAtb24tbGluZS0xMy1hZGRpdGlvbmFsLWluZm9ybWF0P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

15 years 11 months ago [\#786](#786) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#786 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Ok. If you're stuck, you can post the link to your store and it might be enough to tell you the problem.

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#789](#789) by [seociable](/forum/user/217-seociable "View seociable's Profile")  Replied by *[seociable](/forum/user/217-seociable "View seociable's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#789 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Thx Nicolas. i successfully adjusted Shipping and i can now complete a deal but "Additional information" is still there. Is it a possible feature to make hikashop "validate" in backend - ie "green/red" light indicate or text letting the admin know whats more need to be done (in settings).

I also got another (bug?) problem.

Right now im having only one shipping method - when user choose payment and click next, he has to click next again.

The problem is that hika dont relize that shipping method is selected (it is), so when user click next first time, hika relize shipping method but user then has to click next once more.

Can send you URL if you want to test.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODEtY3VzdG9tLWZpZWxkcy1waHAtb24tbGluZS0xMy1hZGRpdGlvbmFsLWluZm9ybWF0P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

15 years 11 months ago -  15 years 11 months ago [\#790](#790) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#790 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

For the "addtional information",
You need to replace the same file with the file in the archive included in the package added to this post.
We will do a release today with this fix.

For the shipping method selection, that's the actual behavior. The problem for now is that the default value is decided in the shipping view of the workflow but the cart data is loaded before all the views. So, the cart is not updated with the selected shipping when it is decided in the view. We could do that, but then, if the cart view is displayed before the shipping view on the same step, that would mean that the shipping would be decided but the cart already displayed would still display the price without the shipping and on clicking next, the user would go to the payment method with the price he saw plus the shipping price without seeing again the cart with the good price. In order to avoid that, the system is done like that.
That could be changed but it means we mean to decide of the default shipping method not in the views but in the controller and rework a bit the system because it would have to be done only if the shipping is on the same step than the cart, otherwise, the shipping view display would be skipped as the system would think that the shipping was already selected.... Not straight forward to do.

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

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

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#796](#796) by [seociable](/forum/user/217-seociable "View seociable's Profile")  Replied by *[seociable](/forum/user/217-seociable "View seociable's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#796 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Thanks again Nicolas for your fast feedback!

I´m not a coder myself - so here comes a maybe a stupid question.

Would it be possble to change shipping methods "radio buttons" and use drop-down in some way?
First option in drop-down would be "Choose shipping method" - letting users use the drop-down to "active" choose method.

ie Shipping method is represented by name in drop-down - when user choose "UPS" the information and price will be display (under).

I don´t know if it become more logical this way or if it "help" solve "next and next again" problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83ODEtY3VzdG9tLWZpZWxkcy1waHAtb24tbGluZS0xMy1hZGRpdGlvbmFsLWluZm9ybWF0P3RtcGw9bWFya2Rvd24=) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14269
-
-

15 years 11 months ago [\#798](#798) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#798 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Hi,

It would be possible by extending the shipping view but first you would have to know PHP to be able to do it and that won't change the problem of the next button.

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

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

Less More

- Posts: 25
- Thank you received: 0
-
-

15 years 11 months ago [\#820](#820) by [seociable](/forum/user/217-seociable "View seociable's Profile")  Replied by *[seociable](/forum/user/217-seociable "View seociable's Profile")* on topic *[Re: custom\_fields.php on line 13 - Additional informat](/forum/3-bug-report/781-custom-fields-php-on-line-13-additional-informat#820 "When in checkout i got this message:  Additional information Warning: Invalid argument supplied for foreach() in ../public&#95;html/components/com&#95;hikashop/views/checkout/tmpl/custom&#95;fields.php on line 13  Can´t click on &quot;Next&quot; either - just reload checkout")*

Ok, thx

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

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

[](#top)
