Post by yowchuan » Wed May 20, 2015 8:06 pm

Code: Select all

Notice: Undefined variable: totals in mydomain/public/admin/view/template/sale/order_info.tpl on line 337
Warning: Invalid argument supplied for foreach() in mydomain/public/admin/view/template/sale/order_info.tpl on line 337
I am getting the above errors, not on all but on some of the 'Missing Orders'.

These 'Missing Orders' doesn't have the following info:
Customer name
E-mail
Telephone
Total is always zero.

But they have the following info:
Order ID
Store Name
Store URL
User Agent
Date Added
Date Modified

Nothing in the 'Payment Details' tab.

The error above also appears in the 'Product' tab. And there's no product details either.

I am on OC 2.0.2.0 and latest Journal theme.

I would like to think it's a Journal issue, but I have the same environment on other stores, and no such problems.

New member

Posts

Joined
Wed Feb 06, 2013 2:39 am

Post by pm-netti » Fri May 22, 2015 6:46 pm

yowchuan wrote:

Code: Select all

Notice: Undefined variable: totals in mydomain/public/admin/view/template/sale/order_info.tpl on line 337
Warning: Invalid argument supplied for foreach() in mydomain/public/admin/view/template/sale/order_info.tpl on line 337
I am getting the above errors, not on all but on some of the 'Missing Orders'.

These 'Missing Orders' doesn't have the following info:
Customer name
E-mail
Telephone
Total is always zero.

But they have the following info:
Order ID
Store Name
Store URL
User Agent
Date Added
Date Modified

Nothing in the 'Payment Details' tab.

The error above also appears in the 'Product' tab. And there's no product details either.

I am on OC 2.0.2.0 and latest Journal theme.

I would like to think it's a Journal issue, but I have the same environment on other stores, and no such problems.
You can change first admin/controller/sale/order.php in line 906:

Code: Select all

public function info() {
to:

Code: Select all

public function info() {
$data['totals'] = array();

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by yowchuan » Fri May 22, 2015 9:56 pm

Thanks pm-netti!
I have done that, basically just adding that line

Code: Select all

$data['totals'] = array();
to the function.

I will update again.

Thanks.

New member

Posts

Joined
Wed Feb 06, 2013 2:39 am

User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by pm-netti » Sat May 23, 2015 12:17 am

yowchuan wrote: I am getting the above errors, not on all but on some of the 'Missing Orders'.

These 'Missing Orders' doesn't have the following info:
Customer name
E-mail
Telephone
Total is always zero.

But they have the following info:
Order ID
Store Name
Store URL
User Agent
Date Added
Date Modified.
I understand you correctly, you have another problem, the orders can not be found?

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by yowchuan » Tue May 26, 2015 4:55 pm

pm-netti wrote: I understand you correctly, you have another problem, the orders can not be found?
Adding the following line seems to have eradicated the issue of those zero total orders, further observation is required.

Code: Select all

$data['totals'] = array();
As for what you've mentioned about orders cannot be found, these orders are automatically categorized under 'Missing Orders' which is OpenCart's default category of orders not checked out (abandoned carts).

New member

Posts

Joined
Wed Feb 06, 2013 2:39 am
Who is online

Users browsing this forum: No registered users and 7 guests