Contributions

Reports (Category Index)
Search: 

Customer List Improved

Customer List Improved v1.0

This file is intended as a replacement for 'customers.php' in your osCommerce admin/ directory.
It provides more customer details and a cleaner interface than the default file included with osCommerce 2.2 MS2.

Installation instructions included.

Expand All / Collapse All

add more customer addresses 11 Jul 2009

this is not a complete file.

add customer addresses from the admin side

in admin/customers.php

ADD

case 'addaddress':


$sql_data_array = array('customers_id' => $HTTP_GET_VARS['cID']);
tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array);

$get_address_id = tep_db_query("SELECT address_book_id FROM address_book WHERE customers_id = '" . (int)$HTTP_GET_VARS['cID'] . "' ORDER BY address_book_id DESC LIMIT 1");

$address_id = tep_db_fetch_array($get_address_id);
$new_address_id = $address_id['address_book_id'];

tep_redirect(tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action','add_id')) . 'cID=' . $HTTP_GET_VARS['cID'] . '&action=edit&add_id=' . $new_address_id));

break;


BEFORE LINE

case 'update':

$customers_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);

$customers_firstname = tep_db_prepare_input($HTTP_POST_VARS['customers_firstname']);


CHANGE LINE

<td class="formAreaTitle"><?php echo CATEGORY_ADDRESS; ?></td>

TO

<td class="formAreaTitle"><?php echo '' . CATEGORY_ADDRESS . '&nbsp;&nbsp;&nbsp;<a href="' . tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&amp;action=addaddress') . '">Add an address</a>'; ?></td>

set default address 11 Jul 2009
Customer list improved 1.6 18 Jan 2009
Customer List Improved 1.5.3b 7 Dec 2008
Added Danish Language 7 Dec 2008
Customers List Improved v1.5.3 30 Nov 2008
Customers List Improved v1.5.2 23 Nov 2008
Customers List Improved 1.5.1 9 Nov 2008
Customers List Improved 1.5 5 Nov 2008
Customer RC1 Francais 5 Sep 2008
Customers List Improved v1.4.3 (mod) 20 Mar 2008
Customers List Improved 1.4_1_2 error in line 795 5 Jul 2007
Customer List Improved 1.4_1_3 4 Jun 2007
Customer List Improved in Dutch 9 Jan 2007
customer.php with username and country state contributions 30 Oct 2006
Danish Language Pack 5 Jul 2006
Bug Fix 4 Jul 2006
Customer List Improved 1.4.2 29 Jun 2006
Customer List Improved v1.4.2 26 Apr 2006
README File Update again 1 Dec 2005
README file update 30 Nov 2005
Customer List Improved 1.4 30 Nov 2005
Customer List Improved 1.4 30 Nov 2005
Full Package V1.3b (Works with admin notes) 6 Nov 2005
small fix to version 1.3 19 Sep 2005
V1.3 (Works with admin notes) 12 Sep 2005
V1.2 (Works with admin notes) 9 Sep 2005
Customer List Improved v1.1 23 Aug 2005
Customer List Improved 23 Aug 2005

Note: Contributions are used at own risk.