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

#   Error on Checkout

##

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

Less More

- Posts: 13
- Thank you received: 0
-
-

15 years 3 months ago [\#21890](#21890) by [bmloho](/forum/user/2204-bmloho "View bmloho's Profile")  *[Error on Checkout](/forum/3-bug-report/21890-error-on-checkout#21890 "Using Joomla 1.7  Warning: Invalid argument supplied for foreach() in administrator/components/com&#95;hikashop/classes/cart.php on line 695  Warning: Invalid argument supplied for foreach() in administrator/components/com&#95;hikashop/classes/cart.php on line 695  Kind Regards")* was created by *[bmloho](/forum/user/2204-bmloho "View bmloho's Profile")*

Using Joomla 1.7

Warning: Invalid argument supplied for foreach() in administrator/components/com_hikashop/classes/cart.php on line 695

Warning: Invalid argument supplied for foreach() in administrator/components/com_hikashop/classes/cart.php on line 695

Kind Regards

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

Less More

- Posts: 86564
- Thank you received: 14311
-
-

15 years 3 months ago [\#21892](#21892) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Error on Checkout](/forum/3-bug-report/21890-error-on-checkout#21892 "Using Joomla 1.7  Warning: Invalid argument supplied for foreach() in administrator/components/com&#95;hikashop/classes/cart.php on line 695  Warning: Invalid argument supplied for foreach() in administrator/components/com&#95;hikashop/classes/cart.php on line 695  Kind Regards")*

You can edit the file administrator/components/com_hikashop/classes/cart.php and change the code: Code:

foreach($variant-&gt;characteristics as $k =&gt; $val){ $i = 0; $ordering = @$element-&gt;characteristics[$val-&gt;characteristic_parent_id]-&gt;ordering; while(isset($chars[$ordering])&amp;&amp; $i &lt; 30){ $i++; $ordering++; } $chars[$ordering] = $val; }

to: Code:

if(!empty($variant-&gt;characteristics)){ foreach($variant-&gt;characteristics as $k =&gt; $val){ $i = 0; $ordering = @$element-&gt;characteristics[$val-&gt;characteristic_parent_id]-&gt;ordering; while(isset($chars[$ordering])&amp;&amp; $i &lt; 30){ $i++; $ordering++; } $chars[$ordering] = $val; } }

and that will remove these warning messages.

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

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