Jump to content

How to: Cart inside Top Menu


asdqwerty

Recommended Posts

I noticed now that the number doesn't update until I change something in the .tpl file. Whats up with that? 

 

Turns out it wasn't that easy  :(

 

I'm assuming it gets cached because I'm using a smarty variable, isn't there a php variable I can use? Or is there some other way I can prevent it getting cached?

Edited by asdqwerty (see edit history)
Link to comment
Share on other sites

hello

in module .php file you've got:

	public function hookTop($params)
	{
	return $this->display(__FILE__, 'blockpermanentlinks-header.tpl', $this->getCacheId('blockpermanentlinks-header'));
	}

remove , $this->getCacheId('blockpermanentlinks-header')

Link to comment
Share on other sites

Hi,

 

I don't understand. In what php file do I do this? blockcart? Permanenlinks doesnt have anything to do with the cart does it?

I'm not actually using the cart block either though, I'm simply using a global smarty variable in my topmenublock to get the number of items in the cart so I can display it in the menu.

 

Regards

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...