NearbyShops/Nearby-Shops-Android-app

Out of stock but still available

Closed this issue · 6 comments

Can add an item that is out of stock to cart. Just one but nevertheless.
Maybe items should not even appear in shop when out of stock.

Thanks ... for pointing out ... yes i acknowledge it as a bug ... and we will have a fix !

Checked on your update:
I can't add to the cart anymore, but it is still possible to select 1 out-of-stock item. But when I then add it to the cart, it does not appear in the cart.
image

Also when I click Add on an OOS item and then minus, negative items and payment get added in the overview on the bottom.
image

I can even lower the total amount in the cart by adding negative bananas even though they do not
appear they still have an effect on the price
Here I have Papayas for 15$ and Pomegranates for 35$ but the total is 29 because I added 7 negative bananas for 3$ each
image

I fixed that bug where you were able to add out of stock item ... its fixed in the latest commit !

Well you cannot add negative items ... it is the error in calculation of the cart total on the client side ... this bug is only on the client side ... as the real value of item total is calculated on the server side therefore the actual order total is not affected by this.

When you update your cart ... the total gets updated to the real value fetched from server !

Anyway, it has been fixed too. Please checkout the latest code and try again both of these bugs should be fixed !

works great, thank you