Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No customer address - orders.php, invoice, packingslip


katie929

Recommended Posts

Help please

 

I have no customer details on Orders.php. I can see email and phone number, but no adress fields. Same on invoice and packingslip.

I have looked for a solution for 3 days but nothing.

 

Can anyone please suggest something please.

Link to comment
Share on other sites

What version are you on, what contributions have you added, have you made any changes to any .php files?

Installed Contributions: CCGV, Close Popup, Dynamic Meta Tags, Easy Populate, Froogle Data Feeder, Google Position, Infobox Header Entire Row, Live Support for OSC, PayPal Seal with CC images, Report_m Sales, Shop by Price Revised, SQL Updater, Who's Online Enhancement, Footer, GNA EP Assistant and still going.

Link to comment
Share on other sites

I think it's something in orders.php ...

 

The last thing I changed was this:

 

I had this error:

 

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in

/var/www/vhosts/domain.com/httpsdocs/admin/customers.php on line 763

 

Warning: array_merge() [function.array-merge]: Argument #2 is not an array in

/var/www/vhosts/domain.com/httpsdocs/admin/customers.php on line 765

 

 

Solution:

This is because PHP5 handles arrays differently, they must be defined before used, or in this case, merged.

 

Edit the admin/customers.php file:

 

Change:

 

line 763: $customer_info = array_merge($country, $info, $reviews);

 

line 765: $cInfo_array = array_merge($customers, $customer_info);

 

To:

line 763: $customer_info = array_merge((array)$country, (array)$info, (array)$reviews);

 

line 765: $cInfo_array = array_merge((array)$customers, (array)$customer_info);

 

That did solve the error problem, but can this be the cause for losing addresses on my invoice and orders.php?

Link to comment
Share on other sites

  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...