Prestashop Quick search block hook

2.9k views Asked by At

i have very strange problem with latest version of prestashop installed when i unhook quick search block from displayTOP then slider and products got disturbed on page then i have to disable Quick search block from modules after that it works fine. actually i want to display Quick search block separately on top using header.tpl file with method {include file=$tpl_dir./modules/blocksearch/blocksearch-top.tpl} kindly help me to resolve this issue i'm customizing the default-bootstrap theme and using prestashop 1.6.0.9

Regards

1

There are 1 answers

3
Deithso On

You may create a custom hook and attache the module quick search block to this hook and in the tpl call your new hook where you want like ! {HOOK_YOURHOOK}

in your module :

public function hookDisplayQuickSearch($params)
    {
 $this->hookTop($params)
    }

in header.tpl add

{HOOK_DISPLAYQUICKSEARCH}

Notice : i didn't try the code