We have a variable product available in two variations: a red T-shirt and a blue T-shirt.
The maximum number of each that can be purchased is 2. This is set for each variation, and no maximum value is set for the main variable product and no value is set for “Maximum quantity for all variations”.
If a customer adds two red T-shirts to their cart, the module won’t let them add two blue T-shirts as well, even though they could buy two of those too.
Here is the video with version 5.2.9: https://drive.google.com/file/d/1pt2GYvmxLK4iaXY-uqfmkM67O67mF48F/view?usp=sharing The maximum quantity that can be purchased is displayed directly above the “Add to Cart” button on the product page (“Maximálisan vásárolható: x db”). Error message at the end: “You have added 3 items to your cart, but the maximum quantity that can be purchased is 4.” (This doesn’t make any sense, and besides, it’s not even true.)
It works, but what’s the solution for variations with a shared inventory? In other words, you can’t buy more than x items in total across all variations. For example, we offer both 100-piece and 1,000-piece packages of a product, but we source them from a single inventory. And we don’t want someone to buy all of the two different package sizes by adding them all to their cart.
If I understood correctly what you want, I believe the “All variations” should have worked. The option lets you set a maximum number of variations of that particular variable product in the cart. For example, if you have set the “All variations” to 10, you can only have a total of 10 variations of that product in the cart.
If that’s not what you had in mind, could you please explain in more detail what you’re trying to achieve?
That may have been the original goal, but it doesn’t work. We’ve tested it.
There is a product that comes in two variations: a 100-unit pack and a 1,000-unit pack. A total of 20,000 units of this product can be purchased (from both pack sizes combined!). Even though we set this up, we added 20,000 units of the 1,000-unit pack to our cart, and it allowed us to add 100 units of the 100-unit pack as well, meaning there were 20,100 units in the cart, which is not allowed.