update ajax cart

58 2 1

I have added a timer into my ajax cart and when there are no items in the cart I want to reset the timer. How would I in javascript get the update cart item amount so I can do this. It works fine with the normal cart but thats because the page is being reloaded how would I using javascript do the same on the ajax cart without force reloading?