Hello.
I’m using a Minimal theme.
My customers are able to select more quantities than what I have in stock with the selector, but a Cart error message (Cart ErrorYou can’t add more to the cart) will pop up when they hit add to cart, which is super confusing and frustrating to my customers. (I think it only happens in the Web version)
So what I want is that they can only select the number of stock available.
SHOP URL: https://alittleidiot.com/
I searched around and could not find an answer on how to accomplish this. Thanks.
If your product has multiple variant options this is an advanced customization because otherwise you could just set a max attribute on the quantity input.
But if you set that max based on the inventory of 1 variant but other variants have a higher max it will not get updated when customers choose different options as the javascript needs to be updated to match that logic.
Have customers specifically told you this, understand the current flow that most stores use and consumers understand is adding something to a cart has an association with checking available inventory.
And technically behind the scenes the way checkout works with stock depletion themes just pretty much need to check inventory at add to cart time and not before to fit the majority of use cases.