mardon Posted November 26, 2012 Share Posted November 26, 2012 (edited) Hi, in my web http://www.tucnak.cz/shop i want to collapce cart after add product to cart. Please help me how to modify tge script Edited November 26, 2012 by mardon (see edit history) Link to comment Share on other sites More sharing options...
Mellow Posted November 26, 2012 Share Posted November 26, 2012 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 1 Link to comment Share on other sites More sharing options...
mardon Posted November 27, 2012 Author Share Posted November 27, 2012 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 More sharing options...
tobbecokta Posted December 10, 2012 Share Posted December 10, 2012 Hi! I don't get this to work on PS 1.5.2. Do you guys have any advice on how to do it? Br, Tobias Link to comment Share on other sites More sharing options...
tobbecokta Posted December 25, 2012 Share Posted December 25, 2012 Does anyone have an idea of how to get it to work in PS 1.5.2? Link to comment Share on other sites More sharing options...
superprg Posted December 27, 2012 Share Posted December 27, 2012 Are you getting any errors or its just not working? Link to comment Share on other sites More sharing options...
tobbecokta Posted December 27, 2012 Share Posted December 27, 2012 Hi, it i just not working . I don't get any error messages.. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now