Cart Items not adding (delay maybe)
-
Hi,
I think maybe there is some delay in using ‘add-item’ endpoint of api because when i use ‘add-item’ very fast. One is added others are not.
For example.
I have two products in cart and when user click ‘add to cart’, i run a loop and send both products ‘add-item’ request, only one item is added to the cart. I’m using ‘cart_key’.But if i do this slowly (using cart_key here also) after 5 seconds or more i think, It works.
Calling ‘add-item’ api for all products is working their response is giving product details as usual and its not giving any error but in cart it add 1 one and others are somewhere else dont know where.
I am using ‘cart_key’ and in ‘cart_key’ i provide customer id so it add items to customer cart sesson. (but as guest not using auth).
- The topic ‘Cart Items not adding (delay maybe)’ is closed to new replies.