SalvanaRik Posted September 2, 2020 Share Posted September 2, 2020 Bonjour à tous, Voici un petit override que j'ai mis en place sur ma boutique pour filtrer uniquement les commandes en cours, histoire de ne pas en oublier une en page suivante... AJOUTER LE FICHIER : \override\controllers\admin\AdminOrdersController.phpCONTENU : <?php class AdminOrdersController extends AdminOrdersControllerCore { public function __construct() { parent::__construct(); $this->_select .= ', IF((os.`id_order_state`)=4 OR (os.`id_order_state`)=6,0,1) as encours'; $this->fields_list['encours'] = array( 'title' => $this->l('En Cours'), 'align' => 'text-center', 'type' => 'bool', 'tmpTableFilter' => true, 'orderby' => true ); } } Pour info, et de base, id_order_state = 4 (Expédié) et id_order_state = 6 (Annulé) Bon codage 😉 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