Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product stock shortages #10

Open
bglamadrid opened this issue Oct 8, 2020 · 0 comments
Open

Product stock shortages #10

bglamadrid opened this issue Oct 8, 2020 · 0 comments
Labels
feature To include new functionality stub Don't work on this until tasks are decided

Comments

@bglamadrid
Copy link
Collaborator

bglamadrid commented Oct 8, 2020

The API does not currently support stock information, but it's a planned feature. And the Product class already contains currentStock and criticalStock properties.

A good feature is adding visual warnings when a given Product's currentStock equals the value of criticalStock, and preventing being added to the cart when their stock reaches 0 (zero).

Additional notes

  • The most relevant component here is /src/app/store/routes/catalog/product-card
  • Another component that may be fitting for changes related to this issue is /src/app/management/routes/products
@bglamadrid bglamadrid added the enhancement To improve existing functionality label Oct 17, 2020
@bglamadrid bglamadrid added hacktoberfest Are you ready? and removed hacktoberfest Are you ready? labels Oct 28, 2020
@bglamadrid bglamadrid added feature To include new functionality and removed enhancement To improve existing functionality labels Feb 8, 2021
@bglamadrid bglamadrid added the stub Don't work on this until tasks are decided label Apr 11, 2021
@bglamadrid bglamadrid changed the title Display stock shortages Product stock shortages May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature To include new functionality stub Don't work on this until tasks are decided
Projects
None yet
Development

No branches or pull requests

1 participant