Patrick POLBOS Orchi Posted November 20, 2016 Share Posted November 20, 2016 (edited) Bonjour à tous, Je cherche à ajouter le nombre de commandes effectuées dans la liste des mes clients, j'ai donc voulu modifier mon fichier Admincustomerscontroller.php comme suit Dans la section $this->_select = ' entre "as connect" et "';" Ajout de (SELECT COUNT(*) FROM '._DB_PREFIX_.'orders o where o.valid =1 AND (o.id_customer = a.id_customer)) AS nb_of_orders, et dans $this->fields_list = array ajout de 'nb_of_orders' => array( 'title' => $this->l('Total orders') ), En pièce joint mon fichier pour que ce soit plus parlant Au final il m'indique une erreur de syntaxe mais je ne trouve pas la solution merci d'avance de votre aide AdminCustomersController.php Edited November 20, 2016 by Patrick POLBOS Orchi (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