Jump to content
thirty bees forum

How to show group on customer list


Recommended Posts

If you want to see group on customer list (from ps forum)

create new file AdminCustomersController.php override / httpdocs / override / controllers / admin / AdminCustomersController.php

``` <?php

class AdminCustomersController extends AdminCustomersControllerCore { public function construct() { parent::construct();

    $this->_select .= ', g.`name` as group_name';
    $this->_join .= '
        LEFT JOIN `'._DB_PREFIX_.'customer_group` cg ON (a.`id_customer` = cg.`id_customer`)
        LEFT JOIN `'._DB_PREFIX_.'group_lang` g ON (cg.`id_group` = g.`id_group` AND g.`id_lang` = '.

    $this->fields_list['group_name'] = array('title' => $this->l('Group'));   

} ```

before 0_1517516032212_0845c6e3-136a-4186-8842-6319d27e6570-grafik.png


after 0_1517516057115_b60adf76-d0b7-4887-b049-9176b65b1cd6-grafik.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...