Skeno Posted January 9, 2014 Share Posted January 9, 2014 Bonjour, Je suis en train d'ajouter des champs à ma fiche produit (Prestashop 1.5.6). Tout fonctionne bien jusqu'à la surcharge du controller AdminProductsController. Mon code dans override\controllers\admin\AdminProductsController\ : class AdminProductsController extends AdminProductsControllerCore { protected function copyFromPost(&$object, $table) { parent::copyFromPost(&$object, $table); $object->animaux = (int)Tools::getValue('animaux'); } } ça fonctionne sans problème si je rajoute la ligne directement dans le controller mais pas quand je surcharge. Merci ! Link to comment Share on other sites More sharing options...
MathieuB Posted April 6, 2015 Share Posted April 6, 2015 Bonjour, Je déterre ce topic je rencontre le même problême si je passe par la méthode de surcharge pour la partie Admin ça ne fonctionne jamais (1.5.6.1) Obligé de modifier la classe core. Cdt, Mathieu 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