PF22 Posted July 2, 2019 Share Posted July 2, 2019 Salut à tous. J'aimerai savoir comment connaitre les Controllers qui sont utilisés dans product-list.tpl (Prestashop 1.6) ? MErci! Link to comment Share on other sites More sharing options...
doekia Posted July 2, 2019 Share Posted July 2, 2019 Tous les contrôleurs qui retournent des liste de produit et aussi certains modules de liste Link to comment Share on other sites More sharing options...
PF22 Posted July 2, 2019 Author Share Posted July 2, 2019 merci @doekia mais pas de listing officielle ? Link to comment Share on other sites More sharing options...
doekia Posted July 2, 2019 Share Posted July 2, 2019 nativement CategoryController, SupplierController, ManufacturerController,BestSellers,NewProducts,ProductSpecial,Search Link to comment Share on other sites More sharing options...
doekia Posted July 2, 2019 Share Posted July 2, 2019 nativement CategoryController, SupplierController, ManufacturerController,BestSellers,NewProducts,ProductSpecial,Search Link to comment Share on other sites More sharing options...
PF22 Posted July 2, 2019 Author Share Posted July 2, 2019 (edited) 3 hours ago, doekia said: nativement CategoryController, SupplierController, ManufacturerController,BestSellers,NewProducts,ProductSpecial,Search Merci @doekia ! C'est un bon début ! Pas de ProductController ? Ou de classe ProductDownload ? Comment savoir ? Edited July 2, 2019 by Pat_07 (see edit history) Link to comment Share on other sites More sharing options...
doekia Posted July 2, 2019 Share Posted July 2, 2019 facile pour savoir tu regarde si soit le controller appèle directement product-list.tpl soit son tpl l'include product-list.tpl sert a afficher des listes ... donc normal qu'il ne soit ni sur la page produit lui-même ni sur download (qui n'a même pas de tpl) peut-être que si tu retournais aux fondamentaux et expliquer ton besoin, ce serait plus facile Link to comment Share on other sites More sharing options...
PF22 Posted July 2, 2019 Author Share Posted July 2, 2019 MErci @doekia pour faire simple j'essaie d'adapter un code existant Dans le override de ProductController je voudrais un truc du genre public function initContent() { parent::initContent(); $fichier = $this->product->ProductDownload::getFilenameFromIdProduct((int)$this->product->id); $this->context->smarty->assign('fichier' => $fichier); } } Pour ensuite afficher la variable $fichier dans product-list mais j'ai rien... 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