woothemes/woocommerce — Issue #778: Enhanced Stock Quantity for Variable Products
Author: dominic-p
Created: 2012-03-09 01:25:38+00:00
State: open

Maybe it's just me, but I feel like the current system for managing inventory for variable products is a bit problematic. My situation is best explained by example. I have a jewelry site that sells rings. The rings can be sized to fit, so I need customers to select their ring size when they order a ring.

I have a single variation set up for all of the allowable ring sizes for a given ring. In the inventory tab, I have indicated that I have 1 in stock, and I leave the Stock Qty blank for the variation. Given this setup, I would expect the system to allow only one of these products to be added to the cart regardless of the chosen ring size variation. However, I am able to add one of each ring size to the cart without error.

I'm not sure what the ideal solution for this would be. If this is just an edge case, maybe there should be a hook or two in the add to cart functionality that would let us do our own checks to see if the item is actually in stock? Or, maybe a check box on the inventory tab for variable products that forces all variations to respect the stock quantity listed on that tab?