+ Button not working properly

HI,
I am trying to built an app basically to add items to shopping cart. It is very simple thing I am trying to do which is simple for you guys but not for me. So kindly help as I am stuck. So first I choose quantity from drop down menu and click Add to cart button.

image
Once I click Add to cart following screen gets displayed

image

The data gets added to the database. Till now it is fine.

Now I want to increase the quantity by clicking the + button. Once I click + button the value 0 changes to 1 and so on so forth. This value I am storing in a custom state. So now what happens is it deletes all info from cart total and quantity but in the background the database gets updated as follows

image

So in the database I have Input_Quantity which stores the custom state value

Now if I click on the + button again it does not update the value in database.

I have following workflows:

image

image

image

image

Please advise.

Thanks
Vijay Zutshi

This topic was automatically closed after 70 days. New replies are no longer allowed.