Jump to content

Remove the pull-down effect block cart


Recommended Posts

Hello, as the subject says, I need to know how to remove the display effect of the cart when you mouse over it. I want to put the cart block on the left side and if possible, keep the drop-down only when this on the side, but not in the displayTop, where this default.

 

Thank you

Link to comment
Share on other sites

this can be helpful:



if you want to use it also in the top section (in addition to cart in column) - and remove the "dropdown" effect you to have open file: /themes/this-is-your-template/js/modules/blockcart/ajax-cart.js

 

remove code:
 

	$("#header .shopping_cart a:first").hover(
		function(){
			if (ajaxCart.nb_total_products > 0 || parseInt($('.ajax_cart_quantity').html()) > 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);
		}
	);

	$("#header .cart_block").hover(
		function(){
		},
		function(){
			setTimeout(function(){
				if (!shopping_cart.isHoveringOver())
					$("#header .cart_block").stop(true, true).slideUp(450);
			}, 200);
		}
	);
Link to comment
Share on other sites

Thank you for responding Vekia.

 

I want to put the cart block in the left column, but the display effect in the left column there is active, and change the drop-displayTop has no effect.

 

That code blocks me the pull effect in both places or only in the displayTop?

 

Thanks

Link to comment
Share on other sites

×
×
  • Create New...