On checkout. Error for a Free Product

  • Posts: 61
  • Thank you received: 2
11 years 2 months ago #121680

Warning: Invalid argument supplied for foreach() in /home/******/public_html/******/plugins/hikashop/userpoints/userpoints.php on line 437

Last edit: 11 years 2 months ago by xsbucks.

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 2 months ago #121731

Hi,

Thanks for the report.
We have already submit a patch for this PHP notice but we modified too much elements in order to create a new package.

Please replace

		if(
			(in_array($order->order_status, $confirmed) || (empty($order->order_status) && in_array($created, $confirmed)))
			&&
			(empty($order->old->order_status) || !in_array($order->old->order_status, $confirmed))
		) {
			foreach($this->fullOrder->order_payment_params->userpoints->earn_points as $mode => $p) {
By
		if(
			!empty($this->fullOrder->order_payment_params->userpoints->earn_points)
			&&
			(in_array($order->order_status, $confirmed) || (empty($order->order_status) && in_array($created, $confirmed)))
			&&
			(empty($order->old->order_status) || !in_array($order->old->order_status, $confirmed))
		) {
			foreach($this->fullOrder->order_payment_params->userpoints->earn_points as $mode => $p) {
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: xsbucks

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

  • Posts: 61
  • Thank you received: 2
11 years 2 months ago #121763

Worked perfect
Thanks Jerome

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

Time to create page: 0.056 seconds
Powered by Kunena Forum