cancel
Showing results for 
Search instead for 
Did you mean: 

Configurable product always reverts to out of stock even when sources have quantity available

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

 

Sources.jpgworkaround.jpgmanage stock.jpg

4 REPLIES 4

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

 

https://experienceleague.adobe.com/en/docs/commerce-operations/release/notes/magento-open-source/2-4...

Founder at https://agency418.com

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.

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:
    1. The child product is In Stock.
    2. The child product has quantity assigned to a source.
    3. The source’s status is Enabled under Stores > Inventory > Sources.
    4. The "Salable Quantity" under Inventory > Stock Sources reflects availability.

3. Recheck Stock Settings for the Parent Configurable Product

  1. Open the configurable product in the admin.
  2. 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.

 

If the issue is resolved, click Kudos and accept it as a solution.
And Contact Us If problem is not resolved.

 

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.