Skip to main content

On checkout. Error for a Free Product

More
13 years 4 weeks ago - 13 years 4 weeks ago #121680 by xsbucks
Warning: Invalid argument supplied for foreach() in /home/******/public_html/******/plugins/hikashop/userpoints/userpoints.php on line 437
Last edit: 13 years 4 weeks ago by xsbucks.

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

More
13 years 4 weeks ago #121731 by Jerome
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
Code:
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
Code:
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.
The following user(s) said Thank You: xsbucks

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

More
13 years 4 weeks ago #121763 by xsbucks
Worked perfect
Thanks Jerome

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

Time to create page: 0.170 seconds
Powered by Kunena Forum