- Posts: 61
- Thank you received: 2
On checkout. Error for a Free Product
13 years 4 weeks ago - 13 years 4 weeks ago #121680
by xsbucks
On checkout. Error for a Free Product was created 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.
13 years 4 weeks ago #121731
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic On checkout. Error for a Free Product
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
By
Regards,
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) {
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) {
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.
13 years 4 weeks ago #121763
by xsbucks
Replied by xsbucks on topic On checkout. Error for a Free Product
Worked perfect
Thanks Jerome
Thanks Jerome
Please Log in or Create an account to join the conversation.
Time to create page: 0.170 seconds