How to Disable Source in Multi-source Inventory (MSI) Magento 2.

Multi-Source Inventory module has the functionality to contains the number of sources to manage items at different warehouse/location and you can disable any custom source using MSI except the Default source. Continue reading “How to Disable Source in Multi-source Inventory (MSI) Magento 2.”

Get Stock Data by stock id Multi Source Inventory(MSI) Magento 2.

Get Stock Data by given stock id for Multi-Source Inventory Magento 2.

Interface Magento\InventoryApi\Api\StockRepositoryInterface used to get stock repository information related data. Continue reading “Get Stock Data by stock id Multi Source Inventory(MSI) Magento 2.”

Get Sales Channels Data For a Stock in MSI Magento 2.

Get Sales Channels list for a given stock using Extension attributes of Multi store Inventory stocks data.

Sales Channels is a list of website for your online store, You have to choose for your stock. If your site contains only a single website then you have only one sales channel.

You can fetch sales channel extension attributes using the getSalesChannels() method. Continue reading “Get Sales Channels Data For a Stock in MSI Magento 2.”