Community Add-Ons

Maintainers: kremit
Add file to this package
Top » Reports

Customer List Improved
for osCommerce Online Merchant v2.2

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.

Legend:  Download   Report
Expand All / Collapse All
add more customer addresses shashank3 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 shashank3 11 Jul 2009  
Customer list improved 1.6 ocs1409 18 Jan 2009  
Customer List Improved 1.5.3b luckyno 7 Dec 2008  
Added Danish Language kristian63 7 Dec 2008  
Customers List Improved v1.5.3 SteveDallas 30 Nov 2008  
Customers List Improved v1.5.2 SteveDallas 23 Nov 2008  
Customers List Improved 1.5.1 ocs1409 9 Nov 2008  
Customers List Improved 1.5 JuanNavarro 5 Nov 2008  
Customer RC1 Francais bloness 5 Sep 2008  
Customers List Improved v1.4.3 (mod) dlavache 20 Mar 2008  
Customers List Improved 1.4_1_2 error in line 795 unik 5 Jul 2007  
Customer List Improved 1.4_1_3 Qihun 4 Jun 2007  
Customer List Improved in Dutch Small Craft 9 Jan 2007  
customer.php with username and country state contributions poschiman 30 Oct 2006  
Danish Language Pack dn1 5 Jul 2006  
Bug Fix atnaples 4 Jul 2006  
Customer List Improved 1.4.2 DigitalRealms 29 Jun 2006  
Customer List Improved v1.4.2 kremit 26 Apr 2006  
README File Update again SCFitness 1 Dec 2005  
README file update SCFitness 30 Nov 2005  
Customer List Improved 1.4 Gob 30 Nov 2005  
Customer List Improved 1.4 Gob 30 Nov 2005  
Full Package V1.3b (Works with admin notes) cs 6 Nov 2005  
small fix to version 1.3 kerul4u 19 Sep 2005  
V1.3 (Works with admin notes) Kornie 12 Sep 2005  
V1.2 (Works with admin notes) Eforce 9 Sep 2005  
Customer List Improved v1.1 mkered77 23 Aug 2005  
Customer List Improved kremit 23 Aug 2005