OliverEggertsen Posted June 12, 2013 Share Posted June 12, 2013 How can i move the paymentlogoblock to just below the shopping cart? Right now the paymentlogoblock is in my right column but i would like it to be in the header. Link to comment Share on other sites More sharing options...
tomerg3 Posted June 12, 2013 Share Posted June 12, 2013 You can try to transplant the module to the top hook (Modules->positions->transplant), however, the module may not be designed to work on that hook, in which case you would need to modify it and add the ability to use the top hook. Link to comment Share on other sites More sharing options...
OliverEggertsen Posted June 12, 2013 Author Share Posted June 12, 2013 You can try to transplant the module to the top hook (Modules->positions->transplant), however, the module may not be designed to work on that hook, in which case you would need to modify it and add the ability to use the top hook. How would i go with the modifying of the module. which file would i have to change, and what would i have to change? Link to comment Share on other sites More sharing options...
tomerg3 Posted June 12, 2013 Share Posted June 12, 2013 You should search the forum / google, there are instructions for modifying a module for a new hook. The file you would need to edit is the same as the module name .php Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 open blockpaymentlogo.php add: if (!$this->registerHook('top')) return false; to the: if (!parent::install()) return false; if (!$this->registerHook('leftColumn')) return false; if (!$this->registerHook('top')) return false; if (!$this->registerHook('header')) return false; return true; then create new function: public function hookTop($params) { return $this->hookLeftColumn($params); } reinstall the module. all other stuff is related to css / module position under the modules > position tab in BO. Link to comment Share on other sites More sharing options...
OliverEggertsen Posted June 12, 2013 Author Share Posted June 12, 2013 You should search the forum / google, there are instructions for modifying a module for a new hook. The file you would need to edit is the same as the module name .php I managed to create the hookTop in the blockpaymentlogo.php, but i won't show up in my front office. I created the code in the bottom of off the php file: public function hookTop($params) { return $this->hookLeftColumn($params); } I made sure to reset the module in the backoffice and hook it into the top hook. Can you tell me what i did wrong? Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 ... and what about registerhook in the install function? Link to comment Share on other sites More sharing options...
OliverEggertsen Posted June 12, 2013 Author Share Posted June 12, 2013 open blockpaymentlogo.php add: if (!$this->registerHook('top')) return false; to the: if (!parent::install()) return false; if (!$this->registerHook('leftColumn')) return false; if (!$this->registerHook('top')) return false; if (!$this->registerHook('header')) return false; return true; then create new function: public function hookTop($params) { return $this->hookLeftColumn($params); } reinstall the module. all other stuff is related to css / module position under the modules > position tab in BO. Still not working :-S Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 you reinstalled module? Link to comment Share on other sites More sharing options...
OliverEggertsen Posted June 12, 2013 Author Share Posted June 12, 2013 you reinstalled module? Yes, i reseted it Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 weird. can you try to search the module in: modules > positions search for "displayTop" section, does this module exist on this list? Link to comment Share on other sites More sharing options...
OliverEggertsen Posted June 12, 2013 Author Share Posted June 12, 2013 i now managed to get the block on the front office, but it is located right under the top horizontal menu on the left side. Shall i modify the css file to get it on the right side under the shopping cart? yes, the module exists on the list Link to comment Share on other sites More sharing options...
OliverEggertsen Posted June 12, 2013 Author Share Posted June 12, 2013 solved :-) thank you so much for the help! Link to comment Share on other sites More sharing options...
vekia Posted June 12, 2013 Share Posted June 12, 2013 you're welcome thanks for info, im going to mark this thread as [solved] if you've got questions related to this case - feel free to continue discussion here regards Link to comment Share on other sites More sharing options...
Recommended Posts