Question

I have a simple product,(one of many), that is linked to a configurable product.

I'm trying to get the salable quantity and attribute quantity to match.

The site is in a dev env, so I don't think any items would be in cart. But the database is from a live copy a few hours ago.

https://i.imgur.com/QXVuFva.png https://i.imgur.com/D93rCrf.png

Toggling stock status, manage stock, changing data, re-indexing doesn't seem to help.

Was it helpful?

Solution

Check inventory_reservation:

https://github.com/magento-engcom/msi/wiki/Salable-Quantity-Calculation-and-Mechanism-of-Reservations

If you don't wan't to use MSI (and stick to CatalogInventory_* from 2.2.7)- turn the Inventory_* modules off:

https://devdocs.magento.com/guides/v2.3/comp-mgr/install-extensions/inventory-management-installation.html#disable-inventory-management

EDIT: According to @Umar comment and @Abude answer from question How to disable the MSI in Magento 2.3?, you can disable extension simply firing:

php bin/magento module:disable -f Magento_Inventory Magento_InventoryAdminUi Magento_InventoryApi Magento_InventoryBundleProduct Magento_InventoryBundleProductAdminUi Magento_InventoryCatalog Magento_InventorySales Magento_InventoryCatalogAdminUi Magento_InventoryCatalogApi Magento_InventoryCatalogSearch Magento_InventoryConfigurableProduct Magento_InventoryConfigurableProductAdminUi Magento_InventoryConfigurableProductIndexer Magento_InventoryConfiguration Magento_InventoryConfigurationApi Magento_InventoryGroupedProduct Magento_InventoryGroupedProductAdminUi Magento_InventoryGroupedProductIndexer Magento_InventoryImportExport Magento_InventoryIndexer Magento_InventoryLowQuantityNotification Magento_InventoryLowQuantityNotificationAdminUi Magento_InventoryLowQuantityNotificationApi Magento_InventoryMultiDimensionalIndexerApi Magento_InventoryProductAlert Magento_InventoryReservations Magento_InventoryReservationsApi Magento_InventoryCache Magento_InventorySalesAdminUi Magento_InventorySalesApi Magento_InventorySalesFrontendUi Magento_InventoryShipping Magento_InventorySourceDeductionApi Magento_InventorySourceSelection Magento_InventorySourceSelectionApi Magento_InventoryShippingAdminUi Magento_InventoryDistanceBasedSourceSelectionAdminUi Magento_InventoryDistanceBasedSourceSelectionApi Magento_InventoryElasticsearch Magento_InventoryExportStockApi Magento_InventoryReservationCli Magento_InventoryExportStock Magento_CatalogInventoryGraphQl Magento_InventorySetupFixtureGenerator

and then:

php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento indexer:reindex
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top