// Small fixes on AdminProduct tab

This commit is contained in:
rGaillard
2012-01-26 12:50:41 +00:00
parent f61b1fc877
commit 8a5b2dc523
6 changed files with 176 additions and 185 deletions
@@ -878,6 +878,19 @@ class AdminCustomersControllerCore extends AdminController
return $tpl->fetch();
}
/**
* Search customers
*/
public function ajaxProcessSearchCustomers()
{
if ($customers = Customer::searchByName(pSQL(Tools::getValue('customer_search'))))
$to_return = array('customers' => $customers, 'found' => true);
else
$to_return = array('found' => false);
$this->content = Tools::jsonEncode($to_return);
}
}