-
Notifications
You must be signed in to change notification settings - Fork 254
Closed
Labels
Milestone
Description
Preconditions
- Magento with enabled MSI
- branch MSI-992
Steps to reproduce
- Login to admin area.
- Navigate to Store > Manage Sources.
- Add new source "Test Source"(code: "test_source").
- Navigate to Store > Manage Stocks.
- Add new stock "Test Stock". Assign it to current(default) website.
- Assign "Test Source" to "Test Stock".
- Perform reindex and flush cache.
- Navigate to Catalog > Products.
- Start creating configurable product.
- Fill necessary data:
Product Name: "configurable product"
SKU: configurable product
Price: 3 - Start creating configurations.
- At "Select Attributes" step select color attribute.
- At "Attribute Value" step create two options: "blue" and "red".
- At "Bulk Images & Price" step check "Apply single quantity to each SKUs" and assign "test_source" with qty = 100 (NOTE: do not make assign options to Default Source).
- Generate products.
- Set some weight for generated products.
- Save configurable.
- Navigate to storefront, configurable product view page
- Add some configurable product option to cart.
- Proceed to checkout.
- Try to place order
Expected result
- Order placed successfully.
Actual result
- "Product type is not supported on Default Stock." error message appears.
Looks like we have to rework validation in:
https://github.com/magento-engcom/msi/blob/3321569a87e81abaca18819eafe3d58f0a73f401/app/code/Magento/InventorySales/Model/CheckItemsQuantity.php#L72