Jump to content

Cart expand does not work


Recommended Posts

Hi!

I have a problem with cart: it does not expand :/


This theme you see under link above is modified default-bootstrap theme, presta 1.6. Everything I've done there is change css files, so it's strange that I've broken cart expand. I don't know when and how I did this. 

Could somebody be so helpful and could try to find what is wrong with this cart? I would also greatly appreciate some explanation, couse I'm very not familiar with javascript/ajax.
Edited by Kolczatka (see edit history)
Link to comment
Share on other sites

I am sorry, I wasn't very precise- It works when a product is already in the cart, but when cart is empty, it does not expand :/ 
After I add and then delete product from cart- then it works, but not when you are entering the page first time.

Sorry for any language mistakes :)

Link to comment
Share on other sites

Okay, I think I figured it out!
this:

$("#header .shopping_cart a:first").hover(
		function(){
			if (ajaxCart.nb_total_products > 0 || cart_qty > 0)
				$("#header .cart_block").stop(true, true).slideDown(450);
		},
		function(){
			setTimeout(function(){
				if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())
					$("#header .cart_block").stop(true, true).slideUp(450);				
			}, 200);
		}
	);

had to become this:

$("#header .shopping_cart a:first").hover(
		function(){
			/*if (ajaxCart.nb_total_products > 0 || cart_qty > 0)*/
				$("#header .cart_block").stop(true, true).slideDown(450);
		},
		function(){
			setTimeout(function(){
				if (!shopping_cart.isHoveringOver() && !cart_block.isHoveringOver())
					$("#header .cart_block").stop(true, true).slideUp(450);				
			}, 200);
		}
	);
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...