Jump to content

collapse ajax cart after add product to cart


Recommended Posts

Hi mardon,

 

Try this :

Edit file /themes/your-theme/js/modules/blockcart/ajax-cart.js

Find

		   	 .fadeOut(100, function() {
					ajaxCart.updateCartInformation(jsonData, addedFromProductPage);
		   	 });

Replace with

		   	 .fadeOut(100, function() {
					ajaxCart.updateCartInformation(jsonData, addedFromProductPage);
					setTimeout("ajaxCart.collapse()", 2000);
				});

 

This should collapse the cart 2 seconds after adding a product

  • Like 1
Link to comment
Share on other sites

Hi mardon,

 

Try this :

Edit file /themes/your-theme/js/modules/blockcart/ajax-cart.js

Find

		   	 .fadeOut(100, function() {
					ajaxCart.updateCartInformation(jsonData, addedFromProductPage);
		   	 });

Replace with

		   	 .fadeOut(100, function() {
					ajaxCart.updateCartInformation(jsonData, addedFromProductPage);
					setTimeout("ajaxCart.collapse()", 2000);
				});

 

This should collapse the cart 2 seconds after adding a product

 

that seems to be perferct, big thank you

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...

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