Questions tagged [stock]

Denotes questions related to stock management and configuration on Magento

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

Display stock qty on custom options magento 2.4.2

I bought the advanced product options suite from Mageworx but after installation on Magento 2.4.2 I realised that backorder for stock is not working the way I want it (out of stock can only be ...
0
votes
1answer
11 views

Where Inventory_stock_% table get updated in Magento 2?

The problem I'm facing is that The table Inventory_stock_13 used for the 2nd website is updated incorrectly. When set source status to Out of stock, column is_salable is still 1 and quantity is ...
0
votes
0answers
14 views

Stock Quantity not increasing after cancelling order

I have a magento store configured with 2 sources. When I placed the order, the salable quantity decreased. After creating a shipment for the order and choosing one of the available 2 sources, the ...
0
votes
1answer
22 views

The stock item was unable to be saved. Please try again

I'm running a custom import. At some point the error: The stock item was unable to be saved. Please try again. Is triggered by : $this->_productRepository->save($prod); Now I'm trying to figure ...
0
votes
1answer
12 views

Stock set to zero after sale

Magento 2.4.2 For some reason product stock is being set to 0 after an order is placed, regardless of quantity previously in stock or quantity ordered. What could be causing this? How can I debug ...
0
votes
0answers
10 views

Programmatically creating a quote/order: Unable to disable "is salable" / quantity check completely

I am programmatically creating an order. I have a product with a stock of 50. If I create an order with 40 units, it works as expected. If I try to order for example 60 units, I get an exception: The ...
0
votes
0answers
15 views

Updating stock via REST API returns 200 but does not update

I'm attempting to update the stock level of a product via the REST API, PUT /rest/V1/products/{sku}/stockItems/{stockId}. When I send the request, it responds with 200 OK and the ID of the stock item, ...
0
votes
0answers
28 views

Magento 2.4: How to create a new Inventory Source Programmatically?

I want to create a new Inventory Source via Script. I can see that there is an option to create it via admin panel at Stores>Inventory>Sources>Add New Source But I want to create it via ...
0
votes
1answer
12 views

Magento 2.3.6 - Stock do not go from 1 to 0

We have Magento 2.3.6 and MIS is disabled. So we have an issue when products are sold from any number down to 0 it does not decrease at all. E.g. if we have 10 left of a product and someone buys 10 ...
0
votes
0answers
7 views

Aggregate the physical stores inventory to make more products available

A merchant wants to aggregate the physical stores inventory to make more products available in their Magento store. Currently they are using the default inventory configuration with a single source. ...
0
votes
1answer
12 views

Why the massive product update via admin isn't working?

I'm just updated all my 12k products via admin massive action, I changed the stock status to in stock, but it's not running. How could I force it to run and fix it the next time?
0
votes
1answer
28 views

Magento 2 How to restore stock after cancel order

I am working on Magento 2.3.5 p-1 I have created a custom module that adds a mass action to the sales order grid, through a controller this action changes the order status to "customCancel" ...
0
votes
2answers
26 views

Get all stock quantities given one product

These are the stocks I have On my export this is what i'm getting, as you can see (for re and re_pro which belong to the same website) the quantity is fine , but the salable qty is a merge of both; ...
0
votes
0answers
6 views

Stock status issue - Magento 2.3.6

We have an issue when we have 1 of something in stock, the value never goes from 1 to 0. And if we cancel the order, the value goes to 2 instead of staying at 1. Does anyone know why this is happening?...
0
votes
1answer
82 views

Salable Quantity is greater than quantity with some products

on some cases my salable quantity is greater than my quantity, not for all product but for example to 10 products on 1000. I could not figure out why, I also tried to delete the product and insert it ...
0
votes
0answers
16 views

Order split based on product attribute reducing qty twice

I have integrated Magento 2 order split based on product attributes with help of this extension. https://github.com/magestat/magento2-split-order My plugin file is below. public function ...
0
votes
0answers
32 views

Magento 2.4 stock_item in /v1/products API

The stock_item seems deprecated in the Magento /V1/products endpoint there is some mentioned here: Magento 2: Get Product Stock status details in Rest API Magento 2: Rest API add "stock_item"...
0
votes
1answer
50 views

Magento 2.4 - Stock Alerts not showing

I can't figure out why, buy products alerts aren't showing. here's my config; Would anyone have any suggestions?
0
votes
0answers
10 views

Bypass inventory validation on a non-MSI store

For the last couple of weeks, I have been trying to find a way where a product is a backorder only on the main stores while being able to be freely ordered one store in particular. We cannot use MSI ...
0
votes
1answer
46 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
50 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 ...
1
vote
1answer
28 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
1answer
171 views

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
82 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
669 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
78 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
84 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
33 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
41 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
1answer
98 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
30 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
301 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
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
179 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
51 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
54 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
349 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
99 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 ...
1
vote
0answers
117 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
44 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&...
1
vote
1answer
817 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
83 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
16 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 ...
3
votes
0answers
151 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
222 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?
1
vote
2answers
395 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
81 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&...

1
2 3 4 5
10