HackYourFuture-CPH / fp-class18

Interior design webshop
MIT License
1 stars 0 forks source link

Bug FrontEnd: Product shall not be added to shopping cart, if "unit left" is 0 #257

Open varsha84 opened 2 years ago

varsha84 commented 2 years ago

User story

Who: As a developer What: I want to be able to add item in shopping cart, but if there is no unit left then add to cart button shall not allow the item to be added to shopping cart. ( probably disable the addToCart button) Why: so that I can only add item that available on website

Acceptance criteria

npm run dev we shall not be able to add item to shopping cart, if unit left is 0.

Implementation details

image