Answer the question
In order to leave comments, you need to log in
How to save changes in the quantity of goods in the cart?
I have a list of items in a shopping cart. When I click on the increase in the number of products, I change the text in the html block with the price of the product * to the number of products and change the text of the Total price block.
After I send a request to get to change the quantity of goods.
$.get('/count_order/', {pk:pk, count:count}).done(function (data) {
...
});
Answer the question
In order to leave comments, you need to log in
before sending the request, block the button and unblock it after receiving the response.
either build a local queue put clicks in it but pull it out and send them strictly in turn, in the second option you can group
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question