leldridg / swesp2024

2 stars 2 forks source link

[medium] Quantity is not associated with database #33

Open twest411 opened 7 months ago

twest411 commented 7 months ago

Quantity dropdown on view-product pages currently only have a couple of options. They should be instead text fields where numbers can be typed in and this number should be consistent with the quantity of said item in the database.

hjc2 commented 7 months ago

changed in new-product

the div was causing issues and did not count item quantity.

With the quantity in the div it was not being considered a member of the form and was not passed in the body.

I removed the div.

hjc2 commented 7 months ago

correction, not fixed, the max number does not check the DB for the max #28

hjc2 commented 7 months ago

not dropdown anymore.

hjc2 commented 7 months ago

When a guest / non-admin user adds to cart, the UI should prevent them from adding more to cart than are in stock.