Skapamento Posted March 18, 2013 Share Posted March 18, 2013 Hi all, i tried before to transplanting tags module into header in displayTop by using this code function hookTop($params) { return $this->hookRightColumn($params); } but it's still warning me that i can't transplanted to this hook ! i think the code seems to be missing something i don't know, any help? i need to get tags under top search input ! Link to comment Share on other sites More sharing options...
vekia Posted March 18, 2013 Share Posted March 18, 2013 do you include register this hook in install() function ? after that you should reinstall module and try again :-) 1 Link to comment Share on other sites More sharing options...
Skapamento Posted March 18, 2013 Author Share Posted March 18, 2013 do you include register this hook in install() function ? after that you should reinstall module and try again :-) I did it and nothing happened, still can't transplanting to hook, code snap .. function install() { if (parent::install() == false || $this->registerHook('leftColumn') == false || $this->registerHook('header') == false || Configuration::updateValue('BLOCKTAGS_NBR', 10) == false) return false; return true; function hookTop($params) { return $this->hookRightColumn($params); } } Link to comment Share on other sites More sharing options...
vekia Posted March 18, 2013 Share Posted March 18, 2013 i don't think so you must register top hook: || $this->registerHook('top') == false so the final install function must looks like: function install() { if (parent::install() == false || $this->registerHook('leftColumn') == false || $this->registerHook('header') == false || $this->registerHook('top') == false || Configuration::updateValue('BLOCKTAGS_NBR', 10) == false) return false; return true; function hookTop($params) { return $this->hookRightColumn($params); } } 1 Link to comment Share on other sites More sharing options...
Skapamento Posted March 18, 2013 Author Share Posted March 18, 2013 i don't think so you must register top hook: || $this->registerHook('top') == false so the final install function must looks like: function install() { if (parent::install() == false || $this->registerHook('leftColumn') == false || $this->registerHook('header') == false || $this->registerHook('top') == false || Configuration::updateValue('BLOCKTAGS_NBR', 10) == false) return false; return true; function hookTop($params) { return $this->hookRightColumn($params); } } Oh sorry .. it's my first time working with Prestashop and i am trying to adapting with presta code So great thanks, it's working and i understand the method but is there is away to move the code under topSearch block? after hooking the Tags with topDisplay by function hookTop($params) { return $this->hookLeftColumn($params); } it's now appearing after top horizontal bar but i need to move it under top search, any how? Link to comment Share on other sites More sharing options...
vekia Posted March 18, 2013 Share Posted March 18, 2013 yes it's available, just go to the modules -> positions and drag n drop your module above module you mentioden. you don't have to turn on live edit feature, just find your module on list in correct hook (in this case top) and drag it thats all i marked this topic as solved 1 Link to comment Share on other sites More sharing options...
Skapamento Posted March 18, 2013 Author Share Posted March 18, 2013 yes it's available, just go to the modules -> positions and drag n drop your module above module you mentioden. you don't have to turn on live edit feature, just find your module on list in correct hook (in this case top) and drag it thats all i marked this topic as solved Great thanks Vekia working Good .. 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