pouet Posted March 27, 2009 Share Posted March 27, 2009 With the admin board i've try to push the categories block, but it don't appear ! Link to comment Share on other sites More sharing options...
Dave Egerton Posted March 27, 2009 Share Posted March 27, 2009 Categories has hooks for left and right column, not footerPrestashop will let to place modules in any hook, but that does not mean its supported so it just does not show. If you want it in footer you would need to add the hook. The best way to understand that is search for the word "Hooks" Link to comment Share on other sites More sharing options...
pouet Posted March 27, 2009 Author Share Posted March 27, 2009 ok.so I did this : http://www.prestashop.com/forums/viewthread/12637/modules/_solution_create_hooks_in_6_easy_stepsIn my sql i enter :id_hook : 44 name : CAT title : perso cat description : footer perso position : 1In footer.php (on the root) : 'HOOK_FOOTER' => Module::hookExec('footer'), 'HOOK_CAT' => Module::hookExec('cat'), In footer.tpl (in my theme directory) : {$HOOK_CAT}{$HOOK_FOOTER} In the admin, I add modules to cat hook...but nothing appear ! Link to comment Share on other sites More sharing options...
pouet Posted March 29, 2009 Author Share Posted March 29, 2009 Is someone knows any issue ? Link to comment Share on other sites More sharing options...
Ardian Yuli Setyanto Posted March 29, 2009 Share Posted March 29, 2009 Hay Guys, it is an easy thing. in each php file per module, you then have to add function hookFooter($params) then transplant your module in back office to FooterI have made customized prestashop template like this in Smallable Beta Custom Prestashop ThemeGood luck. Link to comment Share on other sites More sharing options...
pouet Posted March 30, 2009 Author Share Posted March 30, 2009 I works fine !Thanks a lot Ardian Yuli Setyanto.For everybody to understand you have to duplicate the entire function "hookLeftColumns($params){ CODE...}" and change the name of the function by the one you want : "hookFooter($params){ CODE...}" Very great ! Link to comment Share on other sites More sharing options...
Ardian Yuli Setyanto Posted March 30, 2009 Share Posted March 30, 2009 You're welcome. Good luck Link to comment Share on other sites More sharing options...
visua Posted August 15, 2009 Share Posted August 15, 2009 pouet, What did you put inside the function? I can't find a 'footer' variable to assign this to?I have: function hookFooter($params) { return $this->hookLeftColumn($params); } 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