If this is in the wrong forum - please let me know!
Issue:
When an item has limited inventory and is added to cart, both within a Bundle and as an individual item, the available inventory is not validated when added to cart, or the checkout is opened.
Expected behaviour:
The variant, or bundle should not be added to cart - if the cart contains the variant as line items or component items and the inventory is not available
The checkout should show an inventory shortage error when the user first proceeds to checkout
Steps to repeat:
- Create a product with 2 inventory
- ‘Ashturv Gourmet Chocolates’ in the example images.
- Ensure it is ‘track inventory’ and ‘continue selling’ = false
- Create a bundle product (we’re using the expand operation)
- Add the bundle product to cart with both component items as the example product we created
- In this example, this adds a bundle with 2x components for ‘Gourmet Chocolates’
- Add 1x Gourmet Chocolates to cart
- The product adds scucessfully
- Now we have 3 units of the Gourmet Chocolate in cart
- At this point it should already error as the cart includes components above the available inventory, but it does not.
- Proceed to checkout
- The checkout loads as normal
- At this point it should flag the inventory shortage error
- Enter test payment information and proceed
- Only now does the checkout validate the available inventory
Product created
Products added to cart (over available inventory)
Products at checkout (over available inventory)
Error only at final payment step



