evilnick Posted July 30, 2010 Share Posted July 30, 2010 I would like to move the Cart Block module to the top hook.Here's what I did, go to BO->Modules->Positions->Transplant a module. Select "Cart Block" and "Header of Pages" / "Top of pages" and Save. But when I checked my FO, it doesn't show up at all.However, if I selected to hook onto left column, it shows. Am I doing anything wrong? or do I need to modify the module code somewhere?Any help here would be very much appreciated Thanks. Link to comment Share on other sites More sharing options...
Pshopic Posted July 30, 2010 Share Posted July 30, 2010 Add this to your blockcart.php nearly to line 133. public function hookTop($params) { return $this->hookRightColumn($params); } Hope this will work Link to comment Share on other sites More sharing options...
evilnick Posted July 30, 2010 Author Share Posted July 30, 2010 Tried that. But it didn't work. Link to comment Share on other sites More sharing options...
Pshopic Posted July 30, 2010 Share Posted July 30, 2010 I think you did not add cart block to "Top of page" hook (from Transplant module). I checked it and it works. Link to comment Share on other sites More sharing options...
evilnick Posted July 30, 2010 Author Share Posted July 30, 2010 My bad... I thought I could override blockcart.php so I copied it over to the template's module directory and did my changes there.Thanks PrestaShopic! All is good now. Link to comment Share on other sites More sharing options...
Joshua Ji Posted March 9, 2011 Share Posted March 9, 2011 :-) this is very helpful.i got a concept of block thank you so much!! 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