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

Share this post


Link to post
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

Share this post


Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More