Questions tagged [stock]

Denotes questions related to stock management and configuration on Magento

Filter by
Sorted by
Tagged with
0
votes
1answer
28 views

How to get stock quantity for a given product_id

Does anyone know how to get StockItem by product_id in Magento 2.4.x? We have the following code that works most of the time, but sometimes it throws the following error: "The stock item with the ...
0
votes
1answer
22 views

Magento 2.4.2 stock wrong on productpage

I have installed magento 2.4.2 community edition as multistore. The configurable products are uploaded with a csv from the supplier. On the page with all products I get the right message that the ...
0
votes
1answer
15 views

Stock quantity change API

I want to change quantity number on specific product after payment receive. And after that I reveave 400 error. Is it possible to change the stock quantity? Or Am I doing something wrong? I try to do ...
0
votes
0answers
9 views

how to create controller to show product name and stock status (Available/out of stock) in magento?

I want to create a table to show stock status if all products. This table will contains following fields: => Product Name => Product SKU => Quantity => Stock Status (In Stock / Out of ...
0
votes
0answers
43 views
+100

Magento 2.4.1 Move Out of Stock In last Of Category Listing

I want to move out of stock product in last of the category listing, itried below code but same seems not working. app/code/Meetanshi/StockQuantity/etc/module.xml <?xml version="1.0"?> ...
0
votes
2answers
36 views

Display Out of Stock Products in the End on Category Pages - Magento 2.4.0

I want to display all out of stock products in end on category pages, I have tested few solution which is mentioned on Magento stack exchange, But no one is working for me. Anybody can help me ...
0
votes
1answer
77 views

Magento2: Product Stock Bulk Update API

I'm looking for the bulk variant of the product stock update API /rest/default/V1/products/{productSku}/stockItems/{itemId} Objective: I want to update quantities of multiple products in one API call ...
0
votes
0answers
38 views

Stock issue - Magento 2.3

We have an issue, not anything major, more like an annoying issue, and we do not understand why. One of our stores has low stock, so if we have 1 left and someone buys it, in Magento admin, it shows ...
0
votes
1answer
25 views

How to allow Notify me when Product back in stock for Guests / not Logged-In users?

I want to notify to customer and guests, when products back in stock, But in magento this feature is working only for customers, who is register on my website, But i want allow to also guests and not ...
0
votes
0answers
13 views

Remove Stock Status if Price = 0 in Magento 2.3

Is there a way to hide the Out Of Stock message for products with $0 as a price only? I realize that the saleable quantity can be hidden in Go to Stores > Configuration > Catalog > Inventory &...
0
votes
1answer
35 views

Magento 2 stock status product page

Have used the following code to display the saleable quantity on my product page: How do I add the following? The $qty must be in bold? Quantity below 0 like -5 must be displayed as 0 because of ...
0
votes
0answers
15 views

Paypal order payment verification Stock

I use Paypal under Magento 1.9 and it happens once or twice a week that orders are in payment verification status. It lasts about 15 days. During this period of time the product sold is still ...
0
votes
0answers
52 views

Catalog product and Stock index Error

I am getting this strange error while reindex, and I cannot find any solution on google or on stackoverflow. Stock index exception: SQLSTATE[42S01]: Base table or view already exists: 1050 Table './...
0
votes
0answers
21 views

Magento 2: Some products are out of stock

I don't understand why some products are out of stock (they have quantity and are in stock). I imported an csv with all products. For some products the price is shown (they are in stock) and for some ...
0
votes
1answer
130 views

Magento 2.3 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
0answers
7 views

Group products and stock availability

We have a lot of grope products in our store. We want to see if there is possible to remove the "in stock" when one of the products is sold out. We have turned off so they are not able to ...
0
votes
2answers
94 views

magento 2 enterprice stock source export not working

Hi i am using magento enterprice when i tried to export stock source it below message showing Message is added to queue, wait to get your file soon but after consumer run getting error bin/magento ...
0
votes
0answers
31 views

Magento 2 Notice: Undefined index: quantity

I'm not sure if anyone can help? I've been trying to solve this problem for some time and I've narrowed it down. I am currently having a problem when disabling a product in Magento 2. When I disable a ...
0
votes
1answer
29 views

How to disable stock management for one of the assigned sources on a product? Multi Source platform setup

I am running a multi-source setup on Magento 2.3 platform. I create two different stock sources and assigned them to a product in my catalogue as such: I would like to disable stock management for &...
0
votes
1answer
123 views

How to get product Quantity in Magento 2

I need to retrieve product quantity, I found that, the interfaces we used before to get product quantity are deprecated, these are: \Magento\CatalogInventory\Api\StockStateInterface $stockItem And, \...
0
votes
0answers
51 views

Magento 2.4 MSI - get total stock on product page

In our previous Magento version, without MSI, we used the following code to display the total qty. $_product->getExtensionAttributes()->getStockItem()->getQty(); Sadly this does not work ...
0
votes
0answers
51 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
0answers
19 views

REST API is not updating the product stock quantity in Magento 2.3

REST API is not updating the product stock quantity. Request: https://domain.com/rest/V1/products/1004052/stockItems/361 BODY: { "stockItem": { "item_id": 361, "qty&...
0
votes
1answer
418 views

Proper way to update stock in >= 2.4?

I'm finding inconsistent documentation on how to update product stock for M2 2.4.1. Magento\Catalog\Model\Product::setStockData is documented in code to be deprecated and points to Magento\...
0
votes
0answers
44 views

Is there a way to Create Product using Magento 2 Api and assign the product to a source with stock Quantity?

I am trying to create a product using the Api provided by Magento. So for that I would use this endpoint : POST <host>/rest/default/V1/products source : https://devdocs.magento.com/guides/v2.4/...
1
vote
0answers
14 views

Stocks sources of other website's showing on applying store switcher in admin

Ours is the multi website store(UAE and Oman), and each website is assigned its own stock source under Stores > Stocks But when I Go to product edit, and switch store to Oman website, user is able ...
2
votes
0answers
75 views

Magento2 import stock sources successful but no changes made and not showing in import history

Preconditions (*) Magento ver. 2.3.4 About 10000 skus, this process has worked many times previously, suddenly stops working. No new modules or configurations have been done since last time the ...
0
votes
0answers
6 views

How is magento creating flat

I have some products with stock which are not appearing in my flat store table. I would like to understand why these products are not handled by the indexer. Can anyone tell me where magento is going ...
0
votes
1answer
117 views

How to use the Out-of-Stock threshold option?

I see that I have the Out-of-Stock threshold in my admin panel, how could I use it in order to have more items in my products in stock then I really have? And how does it works?
0
votes
2answers
250 views

What does “deferred stock update” do and how is it related to Backorders?

In M2 what does "deferred stock update" do and how is it related to Backorders? From here it is not exactly clear what it does, especially what it has to do with Backorders (which is quite ...
0
votes
1answer
47 views

Magento 2 Stock update API Postman error (Consumer is not authorized to access %resources)

I am trying to update the product quantity using postman. But i am getting the following errors { "message": "Consumer is not authorized to access %resources", "parameters&...
0
votes
1answer
23 views

Update stock programaticly

I have a custom import of stock from a CSV file, if I have a small number of products to update, it works fine. But When I have 2400 (like I have here and now), the gateway times out. The code looks ...
1
vote
1answer
45 views

is there a way to check if some code in Magento 2 is performed by a web API call

I am update a product stock item using the Magento API: <magento_url>/rest/V1/products/<sku>/stockItems/<item_id> and I have now setup a plugin to override the default Magento ...
0
votes
1answer
34 views

How to automatically change the status to In Stock if products are added to the product

if the number of products falls below 1, then it will become out of stock, but if you increase the products manually, then the status will remain out of stock. How can I automatically change the ...
0
votes
0answers
14 views

List /report of non-selling products

Magento 2.3.2 CE I am looking for a way of creating a list of non-selling products. I.E. products that are 'in-stock' but haven't moved for, say, a month (or date range). Reports seem to be based on ...
0
votes
0answers
20 views

Customers ordering out of stock products

I have my store set up so that out of stock items do not show up. For some odd reason every so often a customer is able to purchase a product that is out of stock. When I look that item up on my ...
0
votes
0answers
39 views

Magento 2.3 SOAP envelope update stock qty - Postman

I am trying to update my stock qty via SOAP using Postman. I have no experience using SOAP. Can anybody tell me what I am doing wrong here? https://mydomain/soap/default?wsdl&services=...
0
votes
0answers
29 views

Stock management on Magento 2.4

I want to show available stocks on my magento 2.4 store front and user can choose any stock that he wants, for example I have a stock on Miami and a stock on Florida for SKU 325, now customer wants to ...
0
votes
0answers
54 views

Magento 2 setting product stock

Can you please help me on setting stock programmatically for already existing product. I have a Magento 2.3.5-p1 instance, so StockRegistryInterface, StockItemInterface, setStockData method of ...
0
votes
0answers
65 views

Magento 2.3: product quantity shows negative value but I have the backorders disabled

why I have negative stock qty? I don't enable the backorders options and any products show negative values. Any idea? Working in Magento 2.3. Regards.
0
votes
0answers
11 views

Magento2 Configurable showing add ot cart button when product is set out of stock

For configurable product - when I set option Out Of stock to main product it is showing that's fine. But also add to cart button showing is not expected as it is out of stock now. When I try to add to ...
0
votes
0answers
255 views

Magento 2.3 Update Stock via Database - Multi Source Inventory

I was hoping to get a grasp on the how Stock levels(Qty of a sku in stock) are stored in the database with the changes to MSI. Now that we have stocks and sources I'm unsure what all tables we need to ...
1
vote
1answer
76 views

How to ship Out of Stock products (backorders)?

How could I ship out of stock products (backorders)? I see the error: Not all of your products are available in the requested quantity. Thanks
0
votes
1answer
25 views

Confusion around Salable Quantity

Can anyone explain what salable quantity is and how do you change it? Each time I change the stock quantity the salable quantity changes too. I don't understand why. salable quantity seems to be 4, ...
1
vote
0answers
30 views

When Magento reserve stock in Paypal payment?

It's a bit of imaginary situation and I think it's not that common but can happens and today someone asked me about that and I got curious but I have no easy way atm to test this so I thought in ...
1
vote
0answers
179 views

No product data returned for GraphQL query if stock not assigned

I have a Magento 2.3.5 site with multiple websites and multiple stock sources. Let's say I want to look up "mysku" in the UK store (store code: uk), which belongs to the UK website. Let's ...
1
vote
1answer
95 views

Magento 2.3.5: What is the correct technique to update stock?

I have tried to follow the next solution: Magento 2: Programmatically Updating Inventory But in Magento 2.3.5 this solution is deprecated. \Magento\CatalogInventory\Api\StockRegistryInterface ...
1
vote
1answer
192 views

Why changing the scope of quantity_and_stock_status from Global to Website level does not affect the Quantity and Stock Status field?

I have changed the scope of quantity_and_stock_status in Stores > Attributes > Product > from Global to Web Site: But while creating new products or editing existing products the Quantity ...
0
votes
1answer
30 views

Is there a way of pulling off a report from M2 that shows stock against each SKU - specifically those with catalog view

I would like to pull off a report to show which SKU's are in stock on Magento - specifically the main SKU's not by size. Is this possible?
0
votes
2answers
104 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 ...

1
2 3 4 5
10