Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Customers in admin panel


Guest

Recommended Posts

Posted

Hi

 

Any one know how to have the registered customers list in date order as they are displayed in alphabetical order at the moment. I like to keep tabs on who has registered more easily

 

Regards

 

Liam

  • 1 month later...
Posted

which customers list "php" are you using??

 

the one that came with OSC or the one from the contribution Mod No.3463 "Customers List Improved"

 

if you are using the normal built in one that came with OSC then the Contribution:

Mod-2940-Customers_By_Date_OSC_Contrib

 

should help you

 

if you are using the Mod 3463 then there is a little bit of PHP to do:

 

in catolog/admin/customers.php

on or around line 790

change:

if(!$sort) $sort = 'ASC';

to:

if(!$sort) $sort = 'DESC';

 

on or around line 800

change:

$customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_telephone, c.customers_dob, ci.customers_info_date_of_last_logon as last_logon, ci.customers_info_number_of_logons as num_logons, ci.customers_info_date_account_created as date_account_created, a.entry_city as city, a.entry_state as state_alt, z.zone_name as state, ctry.countries_iso_code_2 as country, c.customers_newsletter, a.entry_country_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id left join " . TABLE_CUSTOMERS_INFO . " ci on c.customers_id = ci.customers_info_id left join " . TABLE_COUNTRIES . " ctry on a.entry_country_id = ctry.countries_id left join " . TABLE_ZONES . " z on a.entry_zone_id = z.zone_id " . $search . " order by " . $db_orderby . " " . $sort;

To:

$customers_query_raw = "select c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_telephone, c.customers_dob, ci.customers_info_date_of_last_logon as last_logon, ci.customers_info_number_of_logons as num_logons, ci.customers_info_date_account_created as date_account_created, a.entry_city as city, a.entry_state as state_alt, z.zone_name as state, ctry.countries_iso_code_2 as country, c.customers_newsletter, a.entry_country_id from " . TABLE_CUSTOMERS . " c left join " . TABLE_ADDRESS_BOOK . " a on c.customers_id = a.customers_id and c.customers_default_address_id = a.address_book_id left join " . TABLE_CUSTOMERS_INFO . " ci on c.customers_id = ci.customers_info_id left join " . TABLE_COUNTRIES . " ctry on a.entry_country_id = ctry.countries_id left join " . TABLE_ZONES . " z on a.entry_zone_id = z.zone_id " . $search . " order by " . $db_orderby = 'date_account_created ' . $sort . ', c.customers_lastname';

Archived

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

×
×
  • Create New...