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

#   Error on checkout (cart.php on line 675)

##

- **[Andreas\_Sweden](/forum/user/1399-andreas-sweden "View Andreas&#95;Sweden's Profile")**
- [![Andreas&#95;Sweden's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/1399-andreas-sweden "View Andreas&#95;Sweden's Profile") Topic Author
- [ Offline](/forum/user/1399-andreas-sweden)

Less More

- Posts: 51
- Thank you received: 0
-
-

15 years 5 months ago [\#17864](#17864) by [Andreas\_Sweden](/forum/user/1399-andreas-sweden "View Andreas&#95;Sweden's Profile")  *[Error on checkout (cart.php on line 675)](/forum/3-bug-report/17864-error-on-checkout-cart-php-on-line-675#17864 "Get the following message:  Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 675  Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 675  Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 675")* was created by *[Andreas\_Sweden](/forum/user/1399-andreas-sweden "View Andreas&#95;Sweden's Profile")*

Get the following message:

Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public_html/administrator/components/com_hikashop/classes/cart.php on line 675

Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public_html/administrator/components/com_hikashop/classes/cart.php on line 675

Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public_html/administrator/components/com_hikashop/classes/cart.php on line 675

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC8xNzg2NC1lcnJvci1vbi1jaGVja291dC1jYXJ0LXBocC1vbi1saW5lLTY3NT90bXBsPW1hcmtkb3du) 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: 86564
- Thank you received: 14311
-
-

15 years 5 months ago [\#17882](#17882) 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 (cart.php on line 675)](/forum/3-bug-report/17864-error-on-checkout-cart-php-on-line-675#17882 "Get the following message:  Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 675  Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 675  Warning: Invalid argument supplied for foreach() in /home/fashiony/domains/fashionyouknow.com/public&#95;html/administrator/components/com&#95;hikashop/classes/cart.php on line 675")*

Please try to replace the code:
foreach($element-&gt;characteristics as $k =&gt; $characteristic){
$element-&gt;characteristics[$k]-&gt;default=end($mainCharacteristics[$element-&gt;product_id][$k]);
}

by the code:
if(is_array($element-&gt;characteristics) &amp;&amp; count($element-&gt;characteristics)){
foreach($element-&gt;characteristics as $k =&gt; $characteristic){
$element-&gt;characteristics[$k]-&gt;default=end($mainCharacteristics[$element-&gt;product_id][$k]);
}
}

in that file and try again.

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