steph57535 Posted November 1, 2012 Share Posted November 1, 2012 (edited) Bonjour à tous. Pourriez-vous m'indiquer où aller pour modifier ce HOOK ? Merci d'avance. Edited November 1, 2012 by steph57535 (see edit history) Link to comment Share on other sites More sharing options...
Dzianis Yurevich Posted November 1, 2012 Share Posted November 1, 2012 (edited) Si vous avez besoin de changer la position d'affichage du footer, alors, ouvrez le fichier "themes / [you_theme] / footer.tpl" et déplacer {$ HOOK_FOOTER} n'importe où. Et si vous voulez changer le contenu qui est affiché dans le footer, alors vous avez besoin d'écrire un module qui va utiliser le hook du footer Voici la structure du module: custom_footer.zip/custom_footer/custom_footer.php: <?php if (!defined('_PS_VERSION_')) { exit; } class custom_footer extends Module { public function __construct() { $this->name = "custom_footer"; $this->tab = "front_office_features"; $this->version = "1.0.0"; $this->author = "author"; parent::__construct(); $this->displayName = $this->l("Custom footer"); $this->description = $this->l("Custom footer"); } public function install() { return (parent::install() and $this->registerHook('footer')); } public function uninstall() { return (parent::uninstall() and $this->unregisterHook('footer')); } public function hookFooter($params) { $content = 'CONTENT'; $this->smarty->assign('footer', $content); return $this->display(__file__, 'tpl/content.tpl'); } } ?> custom_footer.zip/custom_footer/content.tpl: {$footer} Edited November 1, 2012 by Dzianis Yurevich (see edit history) 1 Link to comment Share on other sites More sharing options...
Dzianis Yurevich Posted November 1, 2012 Share Posted November 1, 2012 Voici un exemple d'un module qui utilise le hook du footer que j'ai dévéloppé pour la version 1.5: http://belvg.info/demo/prestashop/scrolltop/scrolltop.zip 1 Link to comment Share on other sites More sharing options...
Alex Simonchik BelVG Posted November 1, 2012 Share Posted November 1, 2012 Bonjour, La position du module peut être également variée parmi les autres modules du hook à l’aide de Modules -> Positions Cordialement Link to comment Share on other sites More sharing options...
steph57535 Posted November 1, 2012 Author Share Posted November 1, 2012 Merci beaucoup, j'ai ma réponse 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