How to show group on customer list



  • 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` = '.
                (int)$this->context->language->id.')';
            
            $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


 

Looks like your connection to thirty bees forum was lost, please wait while we try to reconnect.