Questions tagged [msi]
The msi tag has no usage guidance.
88
questions
0
votes
0
answers
5
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, which could be API updates, product sales ...
1
vote
1
answer
20
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 ...
0
votes
1
answer
87
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 ...
0
votes
1
answer
173
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.
0
votes
2
answers
49
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 ...
1
vote
1
answer
69
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 ...
0
votes
1
answer
114
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 ...
0
votes
1
answer
388
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);
...
1
vote
2
answers
381
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 ...
0
votes
0
answers
196
views
Restrict the checkout In-Store Delivery pickup-up locations to products that have available inventory
We're running Magento 2.4.5 with the MSI module and using the In-Store Delivery shipping method. I would like to change the In-Store Delivery store locator on the checkout page, so that a location ...
0
votes
0
answers
84
views
Magento 2 product import in multiple inventory source
I have a custom module to import products from CSV and from a third-party API. I had only one source of inventory at the time; now I have multiple sources of inventory set up in the store.
So what ...
0
votes
3
answers
464
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": &...
0
votes
1
answer
67
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 ...
0
votes
1
answer
117
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 ...
0
votes
1
answer
605
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&...
1
vote
2
answers
486
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
...
0
votes
1
answer
139
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, ...
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 ...
3
votes
2
answers
147
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 ...
0
votes
2
answers
895
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->...
0
votes
0
answers
235
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 &...
0
votes
0
answers
55
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
3
votes
0
answers
210
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 ...
1
vote
1
answer
327
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" ...
2
votes
1
answer
718
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 '...
0
votes
1
answer
524
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 ...
0
votes
1
answer
621
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 ...
0
votes
1
answer
389
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 (...
1
vote
1
answer
1k
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.
0
votes
1
answer
397
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....
0
votes
1
answer
378
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.
...
1
vote
0
answers
230
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 ...
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 ...
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?
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 ...
1
vote
1
answer
155
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
...
1
vote
0
answers
418
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 ...
0
votes
1
answer
521
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\...
0
votes
1
answer
408
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 ...
2
votes
0
answers
113
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.
0
votes
1
answer
805
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 ...
0
votes
2
answers
583
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 ...
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 ...
1
vote
2
answers
5k
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 ...
3
votes
2
answers
599
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 ...
1
vote
0
answers
221
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 ...
1
vote
0
answers
101
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?
0
votes
1
answer
138
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 ...
0
votes
0
answers
405
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 ...
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.