Question

If I try to buy a product, then I get "There are no source items with the in stock status" and "This product is out of stock."

enter image description here

So I opened the product and noticed that the Quantity is set to 0 and grayed out.

enter image description here

If I click on the link text "Advanced Inventory" and enter a value to Qty e.g. 1000 and press on Done and then on save, then it is 0 again after it saves.

What is going on?

Was it helpful?

Solution

I figured it out, I have to open all simple products which are connected to the configurable product, then go to "Advanced Inventory" and check the checkbox 'Use Config Settings' under "Manage Stock"

OTHER TIPS

I also got the "There are no source items with the in stock status" and "This product is out of stock" messages but in my case it was because the simple product was set to "this product has weight" but no weight was specified. Since I don't know the weight yet, I just entered 99 so it will be easy to find later.

Our site (Magento 2.3) had this issue with a configured item where all the children had spaces in their SKU names. Updated all of them and the item could be purchased just fine.

We observed a similar issue when we sync the inventory from external custom methods. There are some instances the data is invalid only for some products. If this is external inventory import an ad-hoc incident, then we may use below SQL query to fix it.

INSERT IGNORE INTO inventory_source_item (source_code, sku, quantity, status)
select 'default', cpe.sku, csi.qty, csi.is_in_stock from catalog_product_entity as cpe,  cataloginventory_stock_item as csi
where cpe.type_id ='simple' and cpe.entity_id = csi.product_id;

I have faced similar issue but I have sorted out by setting the Manage Stock "No" in the Admin->Configuration->Catalog->Inventory Tab Product Stock Options->Manage Stock

Try to check the weight of the product, I think you are leaving it blank or the weight value of the product is 0. Hope this can help you to solve the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top