Jump to content

diffrent order of boxes in their (left & right columns)


Recommended Posts

Hi there,

 

i want to relocate some boxes.

i want to remove search box from left column to center area. but even if this is responsible for the left column output

 

{$HOOK_LEFT_COLUMN}

 

i can't find a way "go inside" this line and make some reorders.

 

thanks and regards.

Link to comment
Share on other sites

Hi coti

 

You're deeply into the darkside of prestashop called... hooks !

 

First some explanations are requiered about those :

- On a template file (.tpl) you can call hooks as {$HOOK_NAME} where NAME is the hook's NAME.

- On the related php file, this is linked to the corresponding hook's call

- This call looks for modules (for exemple) linked to it and launchs them

- Each module does its own business

 

So in your situation, you need to go inside the search module and change its hook link.

But first you must uninstall it !

 

Thus you shoud change its code to something like that :

function install()
    {
        parent::install();
        $this->registerHook('top');
    }

 

Replace the name of the function

function hookLeftColumn($params)

by

function hookTop($params)

 

And finaly add the

{HOOK_TOP}

on the header.tpl where you want to load the searchbox block

 

But as I said before in other posts (but maybe you don't understand french :() an interface to manage that is in development right now, and coming soon ;)

 

Last thing, a complete documentation about this mess is planed and should coming later.

Link to comment
Share on other sites

  • 1 month later...

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...