Contributions

Other (Category Index)
Search: 

Customer Sort (Admin)

This file replaces the exisiting admin/customers.php - it enables sorting by First Name, Last Name, Date. All Ascendingly or Descendingly. The link to do this appears by the column names.

Expand All / Collapse All

Customer Sort (Admin) for v2.2 and php5 20 Sep 2011

If you are using PHP5 then use this contribution.

Reason: with v1.6 and the previous one (bug fix) if you have any changes to your customer's address_book then you will get errors similar to:

Warning: array_merge() [function.array-merge]: Argument #1
is not an array in
/home/xxxxxxxxx/public_html/shop/admin/customers.php on line
733

Warning: reset() [function.reset]: Passed variable is not an
array or object in
/home/xxxxxxxxx/public_html/shop/admin/includes/classes/object_info.php
on line 17

Warning: Variable passed to each() is not an array or object
in
/home/xxxxxxxxx/public_html/shop/admin/includes/classes/object_info.php
on line 18

The 2 changes to admin/customers.php file need to be as follows:

1. Line 764 find:
$customer_info = array_merge($country, $info, $reviews);

replace with;
$customer_info = array_merge((array)$country, (array)$info, (array)$reviews);

2. Line 766 find:
$cInfo_array = array_merge($customers, $customer_info);

replace with:
$cInfo_array = array_merge((array)$customers, (array)$customer_info);

The admin/customers.php file in this contribution has been changed to the above.

THIS IS A FULL PACKAGE (for php5 users)

Customer Sort (Admin) for RC2A 17 Jan 2010
Customer Sort Ver. 1.6 (Admin) for MS2 Matthias F a h r i g 19 Jul 2003
Customer Sort Admin v1.5 FIX Lee Nielsen 9 Jun 2003
Customer Sort (Admin) + Up/Down Arrows Lee Nielsen 3 Jun 2003
Customer Sort Ver. 1.1 (Admin) Tony 6 May 2003
Customer Sort - (Admin) Fixed Gøran Myrland 4 Aug 2002
Customer Sort (Admin) v1.0 burt 24 Jul 2002

Note: Contributions are used at own risk.