AZIIZ Posted August 6, 2018 Share Posted August 6, 2018 (edited) Hello, I'm using prestashop 1.6 for an old shop, in wich I have two languages (French & Dutch). I tried to add two colums to customers list tabe, one for customer group and the other for customer language. I overrided AdminCustomersController.php and it worked wel for customers group. But now I have a problem with the colum customer language, I only get the language ID, I trayed many possibilities an it dident work (I even tried to mimic how the table get cutomer gender in the controller, but it didn't work). Can you help me how to resolve this problem please. Thanks PS : I edited the controller and now the filter works well : $langs_array = array(); $langs_array[1] = 'FR'; $langs_array[3] = 'NL'; $this->fields_list = array( 'id_customer' => array( 'title' => $this->l('ID'), 'align' => 'text-center', 'class' => 'fixed-width-xs' ), ..... 'langue' => array( 'title' => $this->l('Langue'), 'filter_key' => 'a!id_lang', 'type' => 'select', 'list' => $langs_array, 'filter_type' => 'int' ), ); Edited August 6, 2018 by AZIIZ More informations (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now