praneth Posted February 15, 2013 Share Posted February 15, 2013 (edited) Hello everyone, I am wondering if someone could tell me how to disable the blinking quantity in the cart. I assume that it must be done in blackcart/ajax-cart.js, but I can't figure out which line I need to amend. Thanks! Edited February 15, 2013 by praneth (see edit history) Link to comment Share on other sites More sharing options...
doubleD Posted February 15, 2013 Share Posted February 15, 2013 (edited) Hello everyone, I am wondering if someone could tell me how to disable the blinking quantity in the cart. I assume that it must be done in blackcart/ajax-cart.js, but I can't figure out which line I need to amend. Thanks! Yes, for the quick fix open ajax-cart.js and find // Update product quantity Change all zeros (0) to ones (1) $(this).fadeTo('fast', 0, function() Here ia a complete function: // Update product quantity updateProductQuantity : function (product, quantity) { $('#cart_block_product_' + product.id + '_' + (product.idCombination ? product.idCombination : '0')+ '_' + (product.idAddressDelivery ? product.idAddressDelivery : '0') + ' .quantity').fadeTo('fast', 1, function() { $(this).text(quantity); $(this).fadeTo('fast', 1, function(){ $(this).fadeTo('fast', 1, function(){ $(this).fadeTo('fast', 1, function(){ $(this).fadeTo('fast', 1, function(){ $(this).fadeTo('fast', 1); }); }); }); }); }); }, Or edit and delete all fades... Edited function: // Update product quantity updateProductQuantity : function (product, quantity) { $('#cart_block_product_' + product.id + '_' + (product.idCombination ? product.idCombination : '0')+ '_' + (product.idAddressDelivery ? product.idAddressDelivery : '0') + ' .quantity').text(quantity); }, Edited February 15, 2013 by doubleD (see edit history) Link to comment Share on other sites More sharing options...
praneth Posted February 15, 2013 Author Share Posted February 15, 2013 Works like a charm. Thanks a lot for the (very quick!) reply 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