seeryx Posted April 23, 2012 Share Posted April 23, 2012 Bonjour, J'ai crée un nouveau hook. Dans l'ordre : 1) j'ai crée un nouveau record dans la table ps_hook : leoUserInfo 2) j'ai ajouté la ligne dans le frontcontrolleur : 'HOOK_LEO_USER_INFO' => Module::hookExec('leoUserInfo') 3) j'ai ajouter une ligne dans le module dans la partie install function hookLeoUserInfo($params) { return $this->display(__FILE__, 'blockpermanentlinks.tpl'); } 4) j'ai greffer le module Permanent link sur mon nouveau hook 5) j'ai réinstallé le module pour être sûr qu'il prenne bien en compte mon nouveau hook 6) j'ajoute mon hook comme ceci {$HOOK_LEO_USER_INFO} dans le template souhaité Malheureusement, je ne vois rien s'afficher. Quelqu'un pourrait-il me donner un petit coup de main svp ? Je cherche depuis deux jours. D'avance merci. Seeryx Link to comment Share on other sites More sharing options...
Prince Raafet Posted May 3, 2012 Share Posted May 3, 2012 Bonjour, J'ai crée un nouveau hook. Dans l'ordre : 1) j'ai crée un nouveau record dans la table ps_hook : leoUserInfo 2) j'ai ajouté la ligne dans le frontcontrolleur : 'HOOK_LEO_USER_INFO' => Module::hookExec('leoUserInfo') 3) j'ai ajouter une ligne dans le module dans la partie install function hookLeoUserInfo($params) { return $this->display(__FILE__, 'blockpermanentlinks.tpl'); } 4) j'ai greffer le module Permanent link sur mon nouveau hook 5) j'ai réinstallé le module pour être sûr qu'il prenne bien en compte mon nouveau hook 6) j'ajoute mon hook comme ceci {$HOOK_LEO_USER_INFO} dans le template souhaité Malheureusement, je ne vois rien s'afficher. Quelqu'un pourrait-il me donner un petit coup de main svp ? Je cherche depuis deux jours. D'avance merci. Seeryx moi aussi ça m'est arrivé, q'est ce q c'est chiant prestashop,??? c tellement compliqué et ya r1 qui marche, et je sais pas pqoi les gens la choisissent encore ?????????????? 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