magento_react_native
magento_react_native copied to clipboard
Out of Stock Product throws exception when selection options
Describe the bug
App crash while selecting size on a configurable product which is out of stock.
reason: quantity value from server is not handled correctly in code
Expected behavior
- In case of
configurableproduct, particular option which is out of stock should be disabled from selection - In case of
simpleproduct, add to cart button should be disabled and message should be displayedout of stockon the screen.
Current Behavior
App crash

Please give more context?
- Are you suing default store url or your own custom magento url?
- If you are using default store url, could you point out the which product you are opening?
http://fiji.jaipurshine.com/summer-women-s-striped-dress-short-sleeve-off-shoulder-slim-sexy-long-dress-for-women.html This happens when product is out of stock and also don't see quantity option.
Thanks
thanks for pointing that out, I haven't implemented this out of stock check in the code, currently the app is very basic and need to be refined at so many levels. If you are interested in contributing I will be happy to help you out.
@all-contributors please add imrankhanjoya for bug