Kerrex Posted September 12, 2016 Share Posted September 12, 2016 Hello, Recently, I wanted to move cart block from its current position to navigation bar. I successfully did that by adding hook to database and writing a few lines of code in 'blockcart.php': public function hookCartinmenu($params) { $params['blockcart_top'] = true; return $this->hookRightColumn($params); } I managed to move it where I wanted, but I also encountered a problem: after refreshing/changing page the cart resets itself. In order summary everything is displayed ok (every added product is there) but cart always shows empty cart. Here's the screen if I wasn't precise enough. The cart block above is the one with custom hook and the cart block below is attached to displayTop (I only enabled displayTop one for this post, to show the difference. It's usually disabled). I'd be grateful if somebody could help me to solve the problem.Of course I can provide you with any file you'd like but I can't share the link since it's hosted on my local PC. 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