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.”

Mixins for Checkout estimation.js file Magento 2.

Magento checkout estimation mixins for the class Magento_Checkout/js/view/estimation to modify the core Javascript method or add a new method to the file.

To create mixins, first, create a requirejs-config.js file in the module view/frontend area. Continue reading “Mixins for Checkout estimation.js file Magento 2.”