CoreyWarren / coldcmerch.com

Creating a Django/React/JWT/Redux E-Commerce store for my good friends in Cold Cut. Shout out to Elmar, Lou, and Brian.
1 stars 0 forks source link

Limiting quantities for User Add to Cart, and Cart Checkout Availability warnings. #88

Closed CoreyWarren closed 1 year ago

CoreyWarren commented 1 year ago

This could actually be quite the challenging implementation, needing changes to backend and frontend components, and across multiple in each category. These would be:

CoreyWarren commented 1 year ago

available_amount added to Python object. Leftover objectives:

CoreyWarren commented 1 year ago

Note: Nevermind, available_amount will not be part of the base Product object. Rather, it will be linked to its attributes. At the moment, I do not have generalized product attributes, rather I simply have product sizes. If product colors and other variations are needed, this will need general product attributes to be configured. More on this in a different Github Issue. For now, available_amount has been added to the ProductSize model objects.

CoreyWarren commented 1 year ago

Leftover objectives:

CoreyWarren commented 1 year ago

Add to Cart will check your quantity, but does not check your cart, we'll leave this to the cart page and checkout views instead:

CoreyWarren commented 1 year ago

Done. Creating a separate issue for Checkout Page stuff. Let's claim this victory.