dubz99 Posted August 8, 2008 Share Posted August 8, 2008 Hello all! I was hoping I could search more options in admin, at the minimum I'd like to be able to search by customer number. But it would also be great to search by phone number! Thanks dubz Link to comment Share on other sites More sharing options...
andes1 Posted August 21, 2008 Share Posted August 21, 2008 Hello sorry for a late reply but until no0w i read this post. the solution is easy: in admin/customers.php find $search = ''; if (isset($HTTP_GET_VARS['search']) && tep_not_null($HTTP_GET_VARS['search'])) { $keywords = tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['search'])); $search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%'"; } and replace for $search = ''; if (isset($HTTP_GET_VARS['search']) && tep_not_null($HTTP_GET_VARS['search'])) { $keywords = tep_db_input(tep_db_prepare_input($HTTP_GET_VARS['search'])); $search = "where c.customers_lastname like '%" . $keywords . "%' or c.customers_firstname like '%" . $keywords . "%' or c.customers_telephone like '%" . $keywords . "%' or c.customers_email_address like '%" . $keywords . "%'"; } that's it remember backup first. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.