I have a function that calls a php script to update cart items (cookie). When I have multiple items in the cart I use a loop that calls my function.
function updateCart(ur){
$.ajax({
url: ur,
success: function(data){
console.log(data);
}
});
}
I think this is firing too fast or something. When there is one item in the cart it works fine. When there are multiple items nothing updates but the function does get called.
Any help is greatly appreciated. Thank You