- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Configurable product always reverts to out of stock even when sources have quantity available
Hi,
After migrating to Magento 2 a few years ago we disabled MSI as we only had the 1 source. When configurable products' child products had stock available, the configurable parents stock status would automatically change to In Stock from Out of Stock status.
We recently added more sources for click and collect. I would have expected that any source with stock for any variation would put the configurable stock into stock automatically, but even when we manually change the configurable product to In Stock it will revert to Out of Stock. As a workaround, we need to add qty 1 to any one of the products variations to the Default Source (default) and this will keep the configurable product in stock. I have see some solutions including updating Advanced Inventory Manage Stock to No, but this hasn't worked for us after re-indexing.
We're currently on ver 2.4.6
Any help would be much appreciated
Thanks
Daniel
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Configurable product always reverts to out of stock even when sources have quantity available
It sounds familiar, I think it was resolved with 2.4.7.
From the change log - "Corrected issues with the Inventory indexer that affected the accuracy of the storefront stock count of configurable products. GitHub-36421" - https://github.com/magento/magento2/issues/36421
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Configurable product always reverts to out of stock even when sources have quantity available
Thanks for the reply. Yes this looks like the same issue we're experiencing.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Configurable product always reverts to out of stock even when sources have quantity available
Hello @mguiney2011,
The issue you’re facing with configurable products reverting to "Out of Stock" despite child product stock availability is related to Magento’s Multi-Source Inventory (MSI) logic. MSI tracks inventory across multiple sources and aggregates stock status for parent configurable products based on the associated child product stock.
1. Check MSI Configuration for Configurable Products
- Default Behavior: For MSI, the parent configurable product's stock status is determined by the stock availability of its child products across sources.
- Potential Issue: If the stock status of the configurable parent isn’t updating correctly, it may be caused by incorrect MSI configuration or outdated indexing.
2. Verify Stock and Sources for Child Products
- Go to Catalog > Products in the Magento Admin.
- Select one of the child products (simple product variations).
- Ensure:
- The child product is In Stock.
- The child product has quantity assigned to a source.
- The source’s status is Enabled under Stores > Inventory > Sources.
- The "Salable Quantity" under Inventory > Stock Sources reflects availability.
3. Recheck Stock Settings for the Parent Configurable Product
- Open the configurable product in the admin.
- Scroll to the Advanced Inventory settings:
- Manage Stock: Set to Yes.
- Stock Status: Ensure it is set to In Stock.
- Backorders: Enable if you want it to remain "In Stock" even when child products are on backorder.
Run the following reindexing commands to ensure stock status updates:
php bin/magento indexer:reindex
Magento aggregates salable quantities from all child products. If the default source isn't being used, but the other sources are properly configured, the parent should still reflect stock.
- Go to Stores > Configuration > Catalog > Inventory > Stock Options.
- Enable Display Out of Stock Products temporarily to diagnose child stock statuses.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Configurable product always reverts to out of stock even when sources have quantity available
It is like MSI might still be causing issues with how stock levels are handled across sources. Have you tried clearing the cache and geometry dash re-indexing after adjusting the settings.