I’m currently using the Storefront API to build a web shop and some of the products for sale are unique and others are not.
A painting, for example, has an inventory quantity of 1 and “Continue selling when out of stock” is not enabled.
A sticker has an inventory quantity of 1 (for the sake of example) and “Continue selling when out of stock” is enabled.
Whilst managing the adding and removal of items to and from the cart, I’d very much like to be able to prevent users from adding more than 1 painting, but allow them to add any amount of stickers. If the stickers had a quantity of 1, I’d be able to refer to the ‘currentlyNotInStock’ field on the ProductVariant, but as they are in stock, I have no way of knowing not to restrict the quantity in the cart.
I could do this based on the collection that the product is in or the tags that have been applied, but ideally I’d be able to read a ‘sellWhenOutOfStock’ field (or something similar) from the ProductVariant.
Is there a way to achieve this that I’m overlooking? If not, how do I go about requesting this feature?