Error on Checkout

  • Posts: 13
  • Thank you received: 0
13 years 3 months ago #21890

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.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 3 months ago #21892

You can edit the file administrator/components/com_hikashop/classes/cart.php and change the 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:
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.053 seconds
Powered by Kunena Forum