How to Update Quantity in the & price in cart

Actions & Logic

If I add an item that isn't already in the cart, it should create a new one that's fine I already know but if I add the same item again, it should update the existing item in the cart by increasing the quantity and adjusting the price accordingly and not again re creating the same item many times if I add it again I'm not quite sure how to set up the conditional action for this ..any suggestions ?

What have you tried so far?

I've tried matching document ID but it doesn't behave

Did you check FlutterFlow's Documentation for this topic?
No
1
1 reply