Jump to content

[Solved] Disable Blinking Quantity In Ajax Blockcart


praneth

Recommended Posts

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 by doubleD (see edit history)
Link to comment
Share on other sites

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