tristars Posted April 16, 2014 Share Posted April 16, 2014 Bonjour, Je souhaite ajouter une colonne dans la liste des produits (dans l'onglet Catalogue). Je souhaite ajouter, à côté de ID, Photo, Nom, Référence un champ "Infos" correspondant au champ "Emplacement (entrepôt)" de la fiche produit correspondant (correspondant au la colonne "location" de la table product). Pour ce faire, dans le fichier admin/tabs/AdminProduct.php j'ai ajouté cette ligne: $this->fieldsDisplay = array( 'id_product' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 20), 'image' => array('title' => $this->l('Photo'), 'align' => 'center', 'image' => 'p', 'width' => 10, 'orderby' => false, 'filter' => false, 'search' => false), 'name' => array('title' => $this->l('Name'), 'width' => 220, 'filter_key' => 'b!name'), 'reference' => array('title' => $this->l('Reference'), 'align' => 'center', 'width' => 20), 'location' => array('title' => $this->l('Informations'), 'align' => 'center', 'width' => 45, 'orderby' => false, 'filter' => false, 'search' => false), 'price' => array('title' => $this->l('Base price'), 'width' => 70, 'price' => true, 'align' => 'right', 'filter_key' => 'a!price'), 'price_final' => array('title' => $this->l('Final price'), 'width' => 70, 'price' => true, 'align' => 'right', 'havingFilter' => true, 'orderby' => false), 'quantity' => array('title' => $this->l('Quantity'), 'width' => 30, 'align' => 'right', 'filter_key' => 'a!quantity', 'type' => 'decimal'), 'position' => array('title' => $this->l('Position'), 'width' => 40,'filter_key' => 'cp!position', 'align' => 'center', 'position' => 'position'), 'a!active' => array('title' => $this->l('Status'), 'active' => 'status', 'filter_key' => 'a!active', 'align' => 'center', 'type' => 'bool', 'orderby' => false)); Cela semble bien fonctionné coté back office à part 1 chose: Lorsque j'ai appliqué un filtre et que je veux le réinitialiser et donc que je clique sur "Réinitialiser", un message d'erreur apparaît (voir pièce jointe) Auriez-vous une idée ? Probablement une ligne à ajouter pour permettre la remise à zéro du filtre..? Merci beaucoup ++ Link to comment Share on other sites More sharing options...
Rosiel Posted June 11, 2015 Share Posted June 11, 2015 Bonsoir, Depuis auriez-vous trouver ? merci 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