Skip to main content

Error on Checkout

More
15 years 2 months ago #21890 by bmloho
Error on Checkout was created by bmloho
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 or Create an account to join the conversation.

More
15 years 2 months ago #21892 by nicolas
Replied by nicolas on topic Re: Error on Checkout
You can edit the file administrator/components/com_hikashop/classes/cart.php and change the code:
Code:
foreach($variant->characteristics as $k => $val){ $i = 0; $ordering = @$element->characteristics[$val->characteristic_parent_id]->ordering; while(isset($chars[$ordering])&& $i < 30){ $i++; $ordering++; } $chars[$ordering] = $val; }

to:
Code:
if(!empty($variant->characteristics)){ foreach($variant->characteristics as $k => $val){ $i = 0; $ordering = @$element->characteristics[$val->characteristic_parent_id]->ordering; while(isset($chars[$ordering])&& $i < 30){ $i++; $ordering++; } $chars[$ordering] = $val; } }
and that will remove these warning messages.

Please Log in or Create an account to join the conversation.

Time to create page: 0.140 seconds
Powered by Kunena Forum