Jump to content

can't hook block category in footer


Recommended Posts

Categories has hooks for left and right column, not footer

Prestashop 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"

Share this post


Link to post
Share on other sites

ok.

so I did this : http://www.prestashop.com/forums/viewthread/12637/modules/_solution_create_hooks_in_6_easy_steps

In my sql i enter :

id_hook : 44 name : CAT title : perso cat description : footer perso position : 1

In 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 !

Share this post


Link to post
Share on other sites

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 ! :)

Share this post


Link to post
Share on other sites
  • 4 months later...

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);
}

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More