Forums / General Questions / Orders page missing customer, shipping and billing fields

Orders page missing customer, shipping and billing fields

Views: 1,952

Results 1 to 12 of 12
14 Apr 2011, 10:37 PM
#1
geodave avatar

geodave

New Zenner

Join Date:
Apr 2009
Posts:
17
Plugin Contributions:
0

Orders page missing customer, shipping and billing fields

Hello,

Upon upgrading our site from v1.3.8a, three important fields no longer are displayed in the Customer -> Orders section.

Attached is a screenshot showing that the Customer, Shipping Address and Billing Address fields aren't displaying data properly from the DB.

The orders.php file in the admin section is unchanged from the newest downloadable version.

Furthermore, the order information is still in the database, I can see all the addresses there. For some reason it's just not showing up on this page. This applies to ALL orders, even those orders placed before the site update.

Anybody have any idea where else I can check to diagnose this problem?

Thanks a ton!

15 Apr 2011, 12:06 AM
#2
ebusinessman avatar

ebusinessman

Zen Follower

Join Date:
Jul 2006
Posts:
132
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

use phpmyadmin to check if order products are recorded, if yes, it's a problem of you zc admin side; if not, it's checkout process side.

15 Apr 2011, 2:44 AM
#3
geodave avatar

geodave

New Zenner

Join Date:
Apr 2009
Posts:
17
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

Yarp, checked that beforehand; the database shows all the info in the orders table. It seems like the ZC admin is just not pulling the info properly from the database

I'm hoping someone knows how I might troubleshoot that

15 Apr 2011, 3:03 AM
#4
ebusinessman avatar

ebusinessman

Zen Follower

Join Date:
Jul 2006
Posts:
132
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

try to use the lasted orders.php to replace your existing one. (backup firstly)

15 Apr 2011, 11:44 PM
#5
geodave avatar

geodave

New Zenner

Join Date:
Apr 2009
Posts:
17
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

You're saying you want me to roll back orders.php to the 1.3.8a version and leave the rest of the site at 1.3.9?

16 Apr 2011, 2:04 AM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Orders page missing customer, shipping and billing fields

That would be a bad plan ... it would be better to find out what is really wrong ...

First, check your database and make sure that the table:
address_format

has the correct values for all of the address formats that you see on each of the address_format_id in the table:
orders

for the fields:
customers_address_format_id
delivery_address_format_id
billing_address_format_id

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Apr 2011, 4:00 PM
#7
geodave avatar

geodave

New Zenner

Join Date:
Apr 2009
Posts:
17
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

They appear correct to me, in the sense that they follow the specs here.

[address_format_id] 2
[address_format] $firstname $lastname$cr$streets$cr$city, $state $postcode$cr$country
[address_summary] $city, $state / $country

17 Apr 2011, 4:09 PM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Orders page missing customer, shipping and billing fields

If you look now at the table:
orders

do you see the three fields that contain:
_address_format_id

and are they set properly to a valid address_format_id that matches to one of the address_format_id records found in:
address_format

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Apr 2011, 4:37 PM
#9
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,721
Plugin Contributions:
56

Re: Orders page missing customer, shipping and billing fields

By chance are you using something like Apsona Shop Admin that unloads and reloads the customers table? I have seen this exact problem in that case - let me know if this is what's happening. (It's easy to verify - look at the customers table for the default_address_id and see if that record exists in the address book table.)

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

18 Apr 2011, 3:09 PM
#10
geodave avatar

geodave

New Zenner

Join Date:
Apr 2009
Posts:
17
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

Ajeh: customers_address_format_id, delivery_address_format_id, and billing_address_format_id contain the number 2, which corresponds to the above address format entry.
A few contain 1, but those are site owners, and the number 1 still appears to correspond to a valid address formatting entry.

swguy: unfortunately I'm not using that module, no. Thanks for the help though, both of you.

18 Apr 2011, 6:58 PM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Orders page missing customer, shipping and billing fields

Could you reload the file:
/your_secret_admin/orders.php

and reload the file:
/your_secret_admin/includes/classes/order.php

from a clean Zen Cart v1.3.9h ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

18 Apr 2011, 7:05 PM
#12
geodave avatar

geodave

New Zenner

Join Date:
Apr 2009
Posts:
17
Plugin Contributions:
0

Re: Orders page missing customer, shipping and billing fields

Yep, both files are identical to the clean 1.3.9h copies.
Even verified with WinMerge.