Questions tagged [msi]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Order qty sometimes going through as 2 instead of 1

I have a script which submits 5 orders to a staging instance of Magento using MSI for the stock. All 5 orders in the script are for the same product and with a Qty of 1 item. I noticed that the ...
Keppotec's user avatar
1 vote
1 answer
46 views

magento2 update product stock in MSI programatically [closed]

I'm trying to update product stock programatically in a store with MSI(multi source inventory) enabled. I want to decrease / increase product quantity based on source_code (inventory source code). ...
Dharmesh N Tukadiya's user avatar
0 votes
0 answers
22 views

What would be a comprehensive method to register when a product stock level changes - Magento 2.4

We are having some issues with products going out of stock inexplicably, We need to create a Magento module that registers whenever the product stock changes, such as API updates, product sales etc. ...
Joe Moe's user avatar
  • 11
2 votes
1 answer
48 views

When a MSI reservation is compensated?

I see in my reservation table some products' stocks have been compensated when it's invoiced and some when it's shipped. I ran the CLI commands below, and I don't see any inconsistencies. php -d ...
Rafael Corrêa Gomes's user avatar
1 vote
1 answer
438 views

Magento2.4: How to assign a new source to stock programmatically?

I am trying to assign new sources to stock but it's not working. I checked the logs and there is no error found. Below is my code. Can anyone please check and suggest me where am I wrong? public ...
MagentoDev's user avatar
0 votes
1 answer
433 views

Get inventory source details in magento 2 observer

I'm trying to get the inventory stock details for an order in observer using the event sales_order_shipment_save_after. I cannot find the inventory data. Only getting order data. Anyone help me.
Sandeep Nair's user avatar
0 votes
2 answers
156 views

How to hide In-Store Pickup Shipping method on checkout based on certain conditions

I am trying to hide In-Store Pickup on checkout page if certain conditions met. For example, I need to hide In-Store Pickup on checkout shipping methods section if customer belongs to specific ...
Muhammad Saeed Khan's user avatar
1 vote
1 answer
187 views

How to get Pickup location code for an Order

An order is placed with the instore_pickup Shipping method, but I cannot find the store code from where the order is supposed to be picked up. There is no information for this in sales_order or ...
Muhammad Saeed Khan's user avatar
0 votes
1 answer
178 views

Question regarding Multi Source Inventory

I'm using Magento Community Edition. I would like to define two different Inventory Sources in 2 different EU countries. When a customer orders a product does Multi Source Inventory automatically pick ...
Hurrpadurr's user avatar
0 votes
1 answer
541 views

How to set or Update product qty for Magento 2.4.5-p1 OR Latest Magento Version?

I have following code to automatically create products in magento 2.4.5-p1. <?php /** * Copyright © All rights reserved. * See COPYING.txt for license details. */ declare(strict_types=1); ...
kekw's user avatar
  • 103
1 vote
2 answers
494 views

Inventory Stock item

I am trying to add a custom field to the MSI source item. Please check the following screenshot- I have overwrite product_form.xml in app/Vendor/Module/view/adminhtml/ui_component/product_form.xml as ...
SANDIP BHOSALE's user avatar
0 votes
3 answers
602 views

magento/inventory-composer-metapackage = 1.1.3 magento 2.4.3

where of composer.json should i add this line? i had tried in different ways but no luck to get inventoy- (MSI) `{ "name": "magento/magento2ce", "description": &...
FastCellular's user avatar
0 votes
1 answer
75 views

Disabling MSI - any side effects?

I need to disable MSI as source of truth is not Magento. Before doing so (as per i.e. disable Magento MSI Magento 2.4.4) I would like to ask about possible side effects (shipments issues?) in Magento ...
Twisted_Jar's user avatar
1 vote
1 answer
162 views

Magento2 Source selection based on Sellable Quantity

I'm trying to modify the Source Selection algorithm based on the following condition: Sort by Sellable(available) Quantity (Descending) and then location sort priority I have tried many tutorials but ...
Arunendra's user avatar
  • 7,436
0 votes
1 answer
797 views

Magento 2 MSI error "There are no source items with the in stock status"

I am trying to enable the MSI module after being disabled for a lot of months. Now MSI related tables are empty and it is throwing the error "There are no source items with the in stock status&...
Baskar's user avatar
  • 3
1 vote
2 answers
675 views

disable Magento MSI Magento 2.4.4

I'm trying to disable Msi module on Magento 2.4.4 using the following command: php bin/magento module:disable -f Magento_Inventory Magento_InventoryAdminUi Magento_InventoryApi ...
Anass Hl's user avatar
0 votes
1 answer
177 views

[Magento][2.4.3] Deduct source item on refund

I have config MSI for my store and I have some problem. When I call api /V1/invoice/:invoiceId/refund to refund my order with payment type is online payment (ex: paypal, ATM..) after refund success, ...
Will Nguyen's user avatar
0 votes
1 answer
44 views

Magento2 MSI Install on 2.3.4

Trying to install https://github.com/magento/inventory on our Magento Enterprise Cloud v2.3.4 however, am getting this error and am not sure if anyone else has experienced this and figured out how to ...
Jayreis's user avatar
  • 705
3 votes
2 answers
161 views

Create custom date MSI Attribute

Is it possible to create a custom attribute for MSI Stock data at the store level and add it in the following table at Admin Product edit or do we just have to use the extension/custom attribute to ...
Kaushal Suthar's user avatar
0 votes
2 answers
1k views

How do I query products by saleable quantity in MSI

How can I get a list of products that have 0 saleable quantity using either the product repository or collection (if not possible in repository). Something like $searchCriteria = $this->...
CrazyHorse's user avatar
0 votes
0 answers
244 views

Magento2 Special Price is not correctly reflecting on Product List Page and Search Page

Pr-conditions: Magento version: Magento Commerce 2.3.6 Varnish version : 5.2.1 PHP version: PHP 7.2.33 MySQL version: 5.7 Multi Website architecture Catalog Price Scope = "Website" (Admin &...
GCS's user avatar
  • 11
0 votes
0 answers
56 views

After disabling MSI modules in magento2.4.1

My Magento store is throwing this error: Error: Cannot instantiate interface Magento\InventorySalesApi\Api\IsProductSalableInterface I am using Magento 2.4.1
kiran's user avatar
  • 597
3 votes
0 answers
253 views

Magento 2 order item find assigned MSI source

I am looking for a extended functionality of Magento 2 adminhtml. After order has been placed (created), how do I find out origin MSI source for each order item (and specified quantity) => from ...
Lubos Zapotocny's user avatar
1 vote
1 answer
368 views

Is it ok to Truncate the "inventory_reservation" table

I have Magento 2.3.6 with MSI enabled. What are the consequences that can occur after truncating the "inventory_reservation" table? Is it ok to truncate the "inventory_reservation" ...
user98069's user avatar
2 votes
1 answer
847 views

Impossible drop table during s:up after disable MSI

I have disable MSI M 2.4.0 and now I try run upgrade but I get: SQLSTATE[HY000]: General error: 1829 Cannot drop column 'source_code': needed in a foreign key constraint '...
Sylvester's user avatar
  • 2,204
0 votes
1 answer
642 views

How to determine if MSI is enabled or not

I am building a Magento 2 module that makes changes to stock information. Bearing in mind stock management APIs are different in Magento depending on if MSI is being used or not, what is the best ...
karatecode's user avatar
0 votes
1 answer
666 views

Magento 2.4 MSI : How to programmatically set Notify Stock Level on Source and SKU

I would like to set Notify Qty from a script that reads a CSV file with Source, SKU and NotifyQty. It would probably need to enable notify qty for the products as well. I can do it with SQL query to ...
Dandy's user avatar
  • 7
0 votes
1 answer
505 views

How to set source quantity (MSI) from my own custom backend module in Magento 2.4?

I'm new to M2, and I am in a hurry to migrate my site from M1. In M1 I made my own MSI functionality, but now I would like to use the built in MSI functionality in M2. For some of the backend logic (...
Dandy's user avatar
  • 7
1 vote
1 answer
2k views

Magento 2 MSI Get Product's Inventory Location/wareshouse on frontend

How would I go about displaying a product's warehouse location on the product page? We are using MSI and would like to display which stock source the product is in stock at on the product page.
user1155594's user avatar
0 votes
1 answer
406 views

Magento 2.3.1 How to hide out of stock products from frontend?

I have Magento setup version 2.3.1 in normal Magento flow if salable qty is > 0 then the product will show in frontend else hide it. This functionality is working correctly after Magento version 2....
Utsav Gupta's user avatar
  • 1,243
1 vote
1 answer
495 views

Can I set MSI stock values using products REST endpoint?

We currently run Magento without MSI. The ERP sends stock updates via extension attributes on the (bulk) product endpoint. This enables us to do most product updates in on API call. Very convenient. ...
BadNewsBrown's user avatar
1 vote
0 answers
259 views

PHP Fatal error on inventory:reservation:list-inconsistencies command

Magento 2.4.0 PHP 7.3 MariaDB 10.4 When I try to run this command: bin/magento inventory:reservation:list-inconsistencies -r I get the following error: PHP Fatal error: Uncaught TypeError: Argument 1 ...
Imesh Liyanage's user avatar
1 vote
1 answer
2k views

How to fix Magento 2 MSI inventory reservation inconsistencies directly via DB?

I see orders that are closed, canceled or completed that were created in the reservation table but never removed and they won't be removed since it's triggered when the order changes the status. I ...
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
2k views

How to solve Magento 2 inventory inconsistencies?

After 3 months of upgrading a Magento 2.0 to 2.3, I noticed many stock inconsistencies like items reserved and never removed, and the orders are closed. Why does it happen and how could I check it?
Rafael Corrêa Gomes's user avatar
0 votes
1 answer
21 views

How to display out of stock on product?

How can I display "Out of stock" in the product based on the Warehouse selected. I will have a selected_opco cookies that can determine the selected source. How can I display "Out of ...
Magento_learner's user avatar
1 vote
1 answer
172 views

MSI M2 - Multisource shipping?

We are using MSI Multistock (multisource) and want to be able to ship from multiple sources in M2 in one shipment. In short it does the following sell items from multiple sources as shown in image ...
snh_nl's user avatar
  • 5,432
1 vote
0 answers
461 views

Default source and stock missing in MSI after re-enabled - Magento 2

We disabled all the below MSI extensions. Magento_Inventory Magento_InventoryCatalog Magento_InventoryAdminUi Magento_InventoryApi Magento_InventoryBundleProduct Magento_InventoryBundleProductAdminUi ...
Bilal Usean's user avatar
  • 9,947
0 votes
1 answer
564 views

Magento 2.3.4 - How to install Inventory Management Manually?

I am trying to install https://www.appjetty.com/magento2-magemob-inventory.htm, After installed the module during di:compile command i am getting the following error, Class Magento\Inventory\Model\...
zus's user avatar
  • 155
0 votes
1 answer
440 views

Backorder quantity wrong when unshipped reservations

Magento version: 2.3.5-p1 (magento/module-inventory-sales) version: 1.0.8 -- The backorder quantity shown in checkout and stored in sales_order_item.qty_backordered can be wrong when there are ...
Nathan's user avatar
  • 1
2 votes
0 answers
124 views

How to make my own selection algorithm working with multi source inventory? Magento 2.3

Is there a way to make my own selection algorithm in MSI? Working only with one website and one store.
Erich Hans Merz Diaz's user avatar
0 votes
1 answer
902 views

Magento2 Salable Qty value is not correct how can we re-calculate this value? List inconsistencies? Fix it?

Salable Qty <> sum(sources) No idea why. We are testing MSI and Backorders and have use the Ampersand extension to disable reservations. But nonetheless: how can salable qty be incorrect? and ...
snh_nl's user avatar
  • 5,432
0 votes
2 answers
635 views

Magento2 MSI How can we set 1 source to ship from, but not to sale from?

Magento2 MSI How can we set 1 source to ship from, but not to sale from? We currently use backorders. Sales are made from stock sources and backorders (min_qty). Suppose Local stock 2 Incoming stock ...
snh_nl's user avatar
  • 5,432
3 votes
1 answer
3k views

Magento2 MSI v2.3.5 and up: What does "Synchronize with Catalog" do exactly?

We are seeing a new option in v2.3.5 "Synchronize with Catalog" and can read about it here. https://docs.magento.com/user-guide/configuration/catalog/inventory.html But what does it do ...
snh_nl's user avatar
  • 5,432
1 vote
2 answers
6k views

How do we change the Default Stock or Default Source for Magento 2 MSI?

How do we change the Default Stock or Default Source for Magento 2 MSI? There is no option to do so And when importing stock or Backorder " out of stock threshold " then it activates Default ...
snh_nl's user avatar
  • 5,432
3 votes
2 answers
651 views

I have to disable the MSI and enable the usual qty field only in the magento 2.3.5 version

I have to disable the MSI and enable the usual qty field only in the Magento 2.3.5 version https://www.rakeshjesadiya.com/disable-sources-in-multi-source-inventory-magento-2/ I tried to use the ...
Ankit Srivastava's user avatar
1 vote
0 answers
246 views

Magento2: Not able to assign Source after enable the MSI module

I have disabled the MSI inventory module (as explained in this article) in my store. After facing some issues I have reverted back MSI related all modules, but after enabled all modules I am not able ...
Purushotam Sharma's user avatar
1 vote
0 answers
104 views

Filter in Admin Panel by MSI Salable Quantity > 0

How can I add a filter in the Admin Panel products grid to filter (display only) product with Salable Quantity > 0?
Tomalo's user avatar
  • 161
0 votes
1 answer
161 views

Assign inventory source if distance greater than 20km

I am using the distance priority algorithm for source selection of the inventory. I want to assign a particular source to a product if the nearest available source is greater than 20km distance. Is it ...
dhanus's user avatar
  • 124
0 votes
0 answers
437 views

Wrong store_id in product collection

I need to cycle products collection for each store. But the method $collection->addStoreFilter($store) seems to not work properly. I also tried to $collection->setStore and setStoreId. The problem ...
Mattia Kozianowski's user avatar
1 vote
2 answers
1k views

MAGENTO 2: HOW TO DISABLE MSI in MAGENTO 2.3.0

How one can disable the MSI module in Magento 2.3.0 if not in use.
PratikS's user avatar
  • 71