You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we have \Magento\CatalogInventory\Model\ResourceModel\Stock\Status::addStockStatusToSelect
This functionality works only with single stock system
Need to adapt this functionality for proper work with MSI
Proposed steps:
Create around plugin on \Magento\CatalogInventory\Model\ResourceModel\Stock\Status::addStockStatusToSelect in Magento\InventoryCatalog\Plugin\CatalogInventory\StockStatusResourceModel
Use \Magento\InventorySalesApi\Api\StockResolverInterface for resolving current stock
Join proper table from new MSI index tables
Create integration tests: check work with default stock (use source_items_on_default_source fixture) and for some custom stock
Fields(columns in SELECT) names must be compatible with legacy names