uv ben Posted September 21, 2015 Share Posted September 21, 2015 Is it Possible to move the Quick search to Footer. On Positions it is only possible to move it to top/header section. Thanks Link to comment Share on other sites More sharing options...
shacker Posted September 23, 2015 Share Posted September 23, 2015 edit the blocksearchmodule, and change the hookDisplaytop to hookdisplayfooter function, and move it from moduloes, positions Link to comment Share on other sites More sharing options...
uv ben Posted September 23, 2015 Author Share Posted September 23, 2015 Thank you Shacker, I've opened the files and didn't find anything related to this function or hook position youv'e mentioned. Can you be more specific? Link to comment Share on other sites More sharing options...
shacker Posted September 23, 2015 Share Posted September 23, 2015 sorry, is public function hookTop($params) and replace to public function hookFooter($params) Link to comment Share on other sites More sharing options...
uv ben Posted September 23, 2015 Author Share Posted September 23, 2015 Found this function in blocksearch.php: What is need to be change? public function hookTop($params) { $key = $this->getCacheId('blocksearch-top'.((!isset($params['hook_mobile']) || !$params['hook_mobile']) ? '' : '-hook_mobile')); if (Tools::getValue('search_query') || !$this->isCached('blocksearch-top.tpl', $key)) { $this->calculHookCommon($params); $this->smarty->assign(array( 'blocksearch_type' => 'top', 'search_query' => (string)Tools::getValue('search_query') ) ); } Media::addJsDef(array('blocksearch_type' => 'top')); return $this->display(__FILE__, 'blocksearch-top.tpl', Tools::getValue('search_query') ? null : $key); } Link to comment Share on other sites More sharing options...
shacker Posted September 23, 2015 Share Posted September 23, 2015 this public function hookTop($params) to public function hookFooter($params) Link to comment Share on other sites More sharing options...
uv ben Posted September 23, 2015 Author Share Posted September 23, 2015 I did. Got a white page with this: js_def Link to comment Share on other sites More sharing options...
shacker Posted September 23, 2015 Share Posted September 23, 2015 what do you mean? do you transplant to footer? Link to comment Share on other sites More sharing options...
uv ben Posted September 23, 2015 Author Share Posted September 23, 2015 Unhooking caused the error. Thank you Link to comment Share on other sites More sharing options...
shacker Posted September 24, 2015 Share Posted September 24, 2015 is solved now? 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