Shopify / dawn

Shopify's first source available reference theme, with Online Store 2.0 features and performance built-in.
Other
2.52k stars 3.38k forks source link

Product quantity Issue #312

Open BoskiMehta opened 3 years ago

BoskiMehta commented 3 years ago

Bug:- 1— the quantity input on product detail page accepts any number of quantity even the product is out of stock or a maximum available quantity is already added in a shopper’s cart.

Solution

1— the quantity input on the Dawn theme’s product detail page only accepts a maximum number equal to the remaining stock, including variants added to a shopper’s cart.

2—After adding a product to the cart, the quantity input will revert back to 1 if there is any remaining stock; the quantity input will be disabled and greyed out along with the add to cart button if there is no remaining stock

henrytranvn93 commented 2 years ago

The extra bug related to this one:

Theme using: Dawn 6.0.2 Newest today June 30th, 2022.

On the product page, if we include buy it now button:

It will redirect to the Inventory Issues Page to alert buyers about the change:

Suggestion: