- Posts: 51
- Thank you received: 0
Error on checkout (cart.php on line 675)
- Andreas_Sweden
-
Topic Author
- Offline
Less
More
15 years 3 months ago #17864
by Andreas_Sweden
Error on checkout (cart.php on line 675) was created by Andreas_Sweden
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
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 or Create an account to join the conversation.
15 years 3 months ago #17882
by nicolas
Replied by nicolas on topic Re: Error on checkout (cart.php on line 675)
Please try to replace the code:
foreach($element->characteristics as $k => $characteristic){
$element->characteristics[$k]->default=end($mainCharacteristics[$element->product_id][$k]);
}
by the code:
if(is_array($element->characteristics) && count($element->characteristics)){
foreach($element->characteristics as $k => $characteristic){
$element->characteristics[$k]->default=end($mainCharacteristics[$element->product_id][$k]);
}
}
in that file and try again.
foreach($element->characteristics as $k => $characteristic){
$element->characteristics[$k]->default=end($mainCharacteristics[$element->product_id][$k]);
}
by the code:
if(is_array($element->characteristics) && count($element->characteristics)){
foreach($element->characteristics as $k => $characteristic){
$element->characteristics[$k]->default=end($mainCharacteristics[$element->product_id][$k]);
}
}
in that file and try again.
Please Log in or Create an account to join the conversation.
Time to create page: 0.192 seconds