Количество продаваемых запасов Magento 2.3 не равно количеству глобальных атрибутов


У меня есть простой продукт (один из многих), который связан с настраиваемым продуктом.

Я пытаюсь сопоставить продаваемое количество и количество атрибутов.

Сайт находится в разработке, поэтому я не думаю, что какие-либо товары будут в корзине. Но база данных сделана из живой копии несколько часов назад.

/images/content/259554/0e2b0659d9c9a18cf0bb1b43e4bdbdf5.png/images/content/259554/617dbda9acac675dc5faec72fd251e84.png

Переключение статуса запасов, управление запасами, изменение данных, повторная индексация, похоже, не помогают.

Author: Pathfinder, 2019-01-28

1 answers

Проверить inventory_reservation:

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

Если вы не хотите использовать MSI (и придерживаетесь CatalogInventory_* из 2.2.7) - отключите модули Inventory_*:

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

РЕДАКТИРОВАТЬ: Согласно комментарию @Umar и ответу @Abude на вопрос Как отключить MSI в Magento 2.3?, вы можете отключить расширение, просто запустив:

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

И затем:

php bin/magento setup:upgrade
php bin/magento cache:flush
php bin/magento indexer:reindex
 7
Author: dudzio, 2021-02-04 10:44:08