Running craft cms 2 as a backend with react as the front end I am able to create a cart via an ajax post request to actions/commerce/cart/updateCart
.
However, I'm not sure how to then update that cart. Every request to updateCart
creates a new cart.
What do I need to pass to updateCart
for it to update instead of create a new cart?