PrabuSS Posted February 7, 2014 Share Posted February 7, 2014 Hi I am using Prestashop 1.4.3 in my store. This is my store http://store49shop.com/ Here i have cart block in the left column. I would like to moved the cart block to top right side of the header. So please any one provide the solution for how can i moved this cart block to header would be better. Link to comment Share on other sites More sharing options...
Sharak Posted February 7, 2014 Share Posted February 7, 2014 Upgrade to 1.5.6.2 which has ajax cart in header by default. Big version difference may cause some problems though so I'd suggest making new prestashop installation and add all products again. Link to comment Share on other sites More sharing options...
vekia Posted February 7, 2014 Share Posted February 7, 2014 you can modify also module php file, add there something like: public function hookTop($params) { return $this->hookRightColumn($params); } (add it before last closing bracket } ) then go to modules > positions and transplant blockcart module to Top hook (not header!) after that you need to customize css styles of this module. Link to comment Share on other sites More sharing options...
PrabuSS Posted February 8, 2014 Author Share Posted February 8, 2014 Thanks vekia I have added the code to at the bottom of the Module -> blockcart -> blockcart.php After i have hooked the module to top of the pages..Please check the screen shots But no luck..Cart block is still appear in left colum. http://store49shop.com/ Please check and given another way possible solution plz.. Link to comment Share on other sites More sharing options...
Sharak Posted February 8, 2014 Share Posted February 8, 2014 (edited) It's still not hooked properly. Are you sure you did it right? You used: public function hookTop($params) { return $this->hookRightColumn($params); } The question is: does it even have hookRightColumn parameters set? It appears in left column so if you don't have public function hookRightColumn($params) then you should use: public function hookTop($params) { return $this->hookLeftColumn($params); } Edited February 8, 2014 by Sharak (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 8, 2014 Share Posted February 8, 2014 it appears in left column because it's still hooked to the left column. unhook moduel form this hook. in addition, can you turn maintenance of ? or just add my ip, i tried to check your website (if module is attached to hookTop) but due to the maintenance mode i cant Link to comment Share on other sites More sharing options...
PrabuSS Posted February 11, 2014 Author Share Posted February 11, 2014 (edited) Thanks for reply to all. Here i would like to change my cart image like in the following screenshot. May i know is this possible in prestashop 1.4.3. Please advice if any other cart block module is available with this features. http://store49shop.com/ Please any one help.. Edited February 11, 2014 by Prabukaran (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 it is but you have to modify block cart module. for the first, you have to add there hookTop support (create public function hookTop) you have to modify also cart block module template file because by default in 1.4 it looks like: *screenshot from your website* you have to convert it to you can do it with css stylesheet for cart, and template file modification Link to comment Share on other sites More sharing options...
Recommended Posts