Alpha-Quad-Squad / GraceShopper

ecommerce website
MIT License
0 stars 0 forks source link

Bug: in cart decrement item should not allow negative qties in cart #64

Open EAHYoder opened 2 years ago

EAHYoder commented 2 years ago

make min in database for shopping items qty.

on front end make it so decremend doesn't make call to thunk if current qty is 0.

if qty is reduced to 0, remove the item from the cart?

lanebobane commented 2 years ago

Front End Functionality: -Disable the "-" minus button when quantity is equal to 1. This means that after an item is added to cart, the user can only reduce quantity to equal one and MUST use the "remove item" button to completely remove the item from their cart.

Back End Functionality: -This shouldn't be necessary due to how the FE prevents updating quantity of a Shopping Item to values less than 1, but we set this minimum at the model level as well.

lanebobane commented 2 years ago

PR: https://github.com/Alpha-Quad-Squad/GraceShopper/pull/67