Jump to content

Cartblock open, can't be collapsed.


Recommended Posts

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

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');

  • Like 1
Link to comment
Share on other sites

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

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

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. :huh:

Link to comment
Share on other sites

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

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...