bafke Posted April 2, 2012 Share Posted April 2, 2012 Hi fellas, I run into a problem with my cart, Ive seen a lot of posts about it but no solution was really found. The problem is that the cart is always open, even when i press the collapse arrow nothing happens. I've used the script that lets you hook it to the top of the page, maybe that could interfere i don't know. Basically what I want is that the cart should be closed and opened when i hover, that I could figure out myself as long as I sort the collapse problem to go away! thanks Link to comment Share on other sites More sharing options...
tdr170 Posted April 2, 2012 Share Posted April 2, 2012 Try This go to modules/blockcart and edit blockcart.php find the line below. Add this as last line- $smarty->assign('colapseExpandStatus', 'collapsed'); if(isset($cookie->ajax_blockcart_display)) $smarty->assign('colapseExpandStatus', $cookie->ajax_blockcart_display); Like This. if(isset($cookie->ajax_blockcart_display)) $smarty->assign('colapseExpandStatus', $cookie->ajax_blockcart_display); $smarty->assign('colapseExpandStatus', 'collapsed'); 1 Link to comment Share on other sites More sharing options...
bafke Posted April 2, 2012 Author Share Posted April 2, 2012 Try This go to modules/blockcart and edit blockcart.php find the line below. Add this as last line- $smarty->assign('colapseExpandStatus', 'collapsed'); if(isset($cookie->ajax_blockcart_display)) $smarty->assign('colapseExpandStatus', $cookie->ajax_blockcart_display); Like This. if(isset($cookie->ajax_blockcart_display)) $smarty->assign('colapseExpandStatus', $cookie->ajax_blockcart_display); $smarty->assign('colapseExpandStatus', 'collapsed'); Thank you for the reply tdr170! This does indeed collapse the cart, but still nothing happens when I press the arrow. Any ideas? cheers Link to comment Share on other sites More sharing options...
tdr170 Posted April 2, 2012 Share Posted April 2, 2012 Before we go to far here what version of Prestashop and what theme are you using. Link to comment Share on other sites More sharing options...
bafke Posted April 2, 2012 Author Share Posted April 2, 2012 1.4.6.2 and the original theme Link to comment Share on other sites More sharing options...
tdr170 Posted April 2, 2012 Share Posted April 2, 2012 Great this should work just unzip the file below and follow the directions in the Read Me file. If you have any trouble just let me know. NEW Link to comment Share on other sites More sharing options...
bafke Posted April 2, 2012 Author Share Posted April 2, 2012 Ok, I replaced all the files. First thing that happened was that the cart disappeared. So i did the: function hookTOP($params) { return $this->hookRightColumn($params); } trick in the cartblock.php file and it appeared again, however it still does not open when i press the arrow. Link to comment Share on other sites More sharing options...
tdr170 Posted April 2, 2012 Share Posted April 2, 2012 Please give me a link to your site I have provided this to several others and it worked fine those are all my files and mine opens and closes with the arrows. Also go to back office and turn on force compile and turn off cache and try one more time. If not I will make a new zip file from my latest blcokcart and see if that works. Also there should be no reason to have to do the trick as you did not uninstall, just over wright. Link to comment Share on other sites More sharing options...
bafke Posted April 2, 2012 Author Share Posted April 2, 2012 Force compile was on and cache off, yea I just replaced all the files you gave me. If you want you can pm me your ip I can show you the shop since it's not live. thanks Link to comment Share on other sites More sharing options...
tdr170 Posted April 3, 2012 Share Posted April 3, 2012 I replaced the zip file in the other post with a new one try that and I will get my ip and pm after that. WEIRD!!! Link to comment Share on other sites More sharing options...
bafke Posted April 3, 2012 Author Share Posted April 3, 2012 I replaced the zip file in the other post with a new one try that and I will get my ip and pm after that. WEIRD!!! Still the same as before, the cart disappeared before i did the hook trick. And it still does not work to open the cart with the arrow. Weird indeed! Link to comment Share on other sites More sharing options...
tdr170 Posted April 3, 2012 Share Posted April 3, 2012 So strange check your messages. 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