Zen Cart Logo
Forums / General Questions / my customer cannot view their order information

my customer cannot view their order information

Locked

Views: 1,347

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
18 Jan 2007, 5:05 PM
#1
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

my customer cannot view their order information

Hello

My customers complained to me that they cannot view their account information, especially the information about previous orders from their webpage.

Instead, they see this: Warning: Invalid argument supplied for foreach() in /home/thesbeau/public_html/includes/templates/template_default/templates/tpl_account_default.php on line 37

What is this? How can I fix it?

Lina

19 Jan 2007, 4:37 AM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: my customer cannot view their order information

What version of Zen Cart are you running?

Clean install or an upgrade? If an upgrade, from what version and how did you do the upgrade?

What version php? Anything new on your server that your hosting site may have done recently?

Have you an URL that we can peek at?

19 Jan 2007, 2:31 PM
#3
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Re: my customer cannot view their order information

Thank you for your reply!

My site is https://www.thesbeauty.com. It uses zencart 1.3.1. This site never got updated from the beginining.

I have a subdomain jade.thesbeauty.com. It uses zencart 1.3.7. I install zencart 1.3.7 from the begining.

On both website, the customers cannot view their previous orders in "my account" website after they sign in.

19 Jan 2007, 2:49 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: my customer cannot view their order information

Are you on php 5.x?

19 Jan 2007, 6:58 PM
#5
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Re: my customer cannot view their order information

My PHP Version is 4.4.1.

20 Jan 2007, 4:51 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: my customer cannot view their order information

You missed applying the fix to the /includes/modules/pages/account/header_php.php
line 50:

$ordersArray = array();

when inserted properly, it shows up here:```
$orders_query = $db->bindVars($orders_query, ':customersID', $_SESSION['customer_id'], 'integer');
$orders_query = $db->bindVars($orders_query, ':languagesID', $_SESSION['languages_id'], 'integer');
$orders = $db->Execute($orders_query);

$ordersArray = array();
while (!$orders->EOF) {


This was fixed as part of v1.3.6
21 Jan 2007, 5:54 PM
#7
lina0962 avatar

lina0962

Zen Follower

Join Date:
Jun 2006
Posts:
403
Plugin Contributions:
0

Re: my customer cannot view their order information

thank you! It is fixed!!