Questions tagged [stock]

Denotes questions related to stock management and configuration on Magento

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

Why is programmatically updating stock and price so slow?

I'm trying to update the stock and price of the products in a magento 2.3 store from a csv file. The file I have has about 5,000 rows, and about 3,500 of those correspond to products in magento. ...
0
votes
0answers
32 views

Magento 2: Missing Default Inventory Stock and Source

While running the Magento indexer commands I received this error: No linked stock found. After checking the backend I realised that there is no default inventory stock entry or source. I am running ...
0
votes
0answers
5 views

Magento 2.3.2: Need decrease salable quantiy on while set from admin ,Decrease Stock When Order is Placed set “NO”

Is it possible to still decrease salable quantity on place order while select from admin, Decrease Stock When Order is Placed set "NO". if yes please help how can.
0
votes
0answers
27 views

Magento 2: selling 0.5 item as MINIMUM quantity WITHOUT using decimals

I have a very weird question to ask you. I would like to use 0.5 quantity ONLY as minimum quantity without using decimals. As of now, if I try to put 0.5 having decimals disabled, it doesn't work (of ...
0
votes
1answer
36 views

How to add custom column in the product grid while creating the order in the admin in Magento 2?

I am using Magento 2.3.0 You can see above grid when you try to add products while order creation in the admin. I want to add a new column called "Stock" in the above grid and I want to display the ...
0
votes
0answers
19 views

Magento 2.2 - Products showing out of stock

I'm having an issue where only a handful of products are showing out of stock even though they have inventory and are set to in stock. One thing I've noticed is that the products will go to in-stock ...
0
votes
0answers
17 views

How to show saleable quantity in Magento Low Stock Report

Today I have encountered a problem with one of our magento store. Below are the store configuration. Magento 2.3.2 (Migrated from Magento 1.9.4.2) Backorders are allowed in our store. Product X has ...
0
votes
0answers
12 views

How to get catalog in stock on frontend?

I have done everything everyone subscribes everywhere From reindex, in stock, manage all, quantity, databases check, double check But products just don't appear on front end because it says out of ...
0
votes
2answers
98 views

Downloadable product on Magento 2.3.1 out of stock issue

I'm issuing a problem with newly created downloadable products on Magento 2.3.1 This store contains about 10k products (phisical and digital) imported from M1 Phisical in stock/out of stock is ...
0
votes
2answers
36 views

Display stock status on product detail page

I have searched a lot and since I am new to magento I would like your help. I want to display my stock quantity on my product details page. Can someone please give me a step by step configuration ...
2
votes
1answer
66 views

Magento 2: Rest API add “stock_item” in to the list of the products

Magento 2 product rest API provided stock_item details in /V1/products/:sku API. But V1/products rest API not included stock_item details in products. I want to need stock_item details in to the list ...
1
vote
2answers
46 views

Save stock data programmatically

You know how you've got; $tempProduct->setData('price', 9.99); $tempProduct->getResource()->saveAttribute($tempProduct,'price'); I want to do the same, except for stock; $stockData = $...
0
votes
0answers
14 views

Magento 2: Adding fields/attributes to product “Assigned Sources”

A relatively new feature in Magento 2 is stock sources, where inventory can be held at multiple locations, like this: Our client wants to store the location of the product within each store (aisle ...
0
votes
0answers
27 views

Stock level in configurable product dropdown

Can someone helpful think of a way to display the stock level of a configurable product variant in the dropdown list? i.e S... 9 in stock M...3 in stock L...2 in stock Thanks,
1
vote
1answer
52 views

Magento 2 - Bulk update stock programmatically - Using database query [duplicate]

I have 10 products; 1, 2, 3, 4, 5, 6, 7, 8, 9, 10. I want to be able to bulk change 1, 3, 4, 5 and 9 to 0 quantity and out of stock and 2, 6, 7, 8 and 10 to 100 quantity and in stock. How can I do ...
0
votes
0answers
22 views

Are these the correct fields to update for a stock update API method?

I have several thousand products in Magento, and the /V1/products/{productSku}/stockItems/{itemId}/ takes too long to update inventory for all the products, so I'm making my own API method to update ...
0
votes
1answer
30 views

how i can solve unable to save stock item in magento 2 while saving product

I deleted all the products and categories via SQL queries (i used this answer https://magento.stackexchange.com/a/283404/73525 ) while saving new product i got error Unable to save Stock Item ...
0
votes
1answer
87 views

Can't getStockItem magento 2.3.1

Block namespace Vendor\Extension\Block\Product; use Magento\Framework\View\Element\Template; class Stickycart extends Template { protected $_registry; protected $_stockItemRepository; ...
0
votes
2answers
42 views

Magento 2 : We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer your_db_user@% does not exist

I have migrated a Magento 2 site to a new server and getting the below error when placing order We cant place the order : SQLSTATE[HY000]: General error: 1449 The user specified as a definer ...
0
votes
1answer
26 views

Magento 2 - Render cost price in low stock report - Many can use this

We have a shop, where we want a low stock report with cost prices, so we can see how much we need to pay for these products before buying them. What I want is to add an extra column with the cost ...
0
votes
0answers
25 views

Magento 2 how Inventory and Out-of-Stock Threshold calculation works?

With regards to Magento 2.3.1 what is the use of Out-of-Stock Threshold assigned to product inventory? For eg: product stock status "in stock" qty "10" When I assign Out-of-Stock Threshold "5" ...
1
vote
1answer
37 views

M2 - Reset Salable Quantity

Is it possible to reset the Salable Quantity? It looks like our Stock and Salable Quantity is going the wrong way, they show to much difference. It can because of we removed all the test orders... So ...
0
votes
0answers
15 views

Stock Issue: cataloginventory_stock_status table doesn't hold correct final status

AFAIK, cataloginventory_stock_status table holds the final status of the product stock (Which is the result of stock indexing). But it seems it not working as expected. Expected Results When any ...
0
votes
2answers
95 views

How to move the “IN STOCK” above Add to cart button

How to move the Stock availability (In Stock) next to the Quantity button.
0
votes
0answers
22 views

M2 - Configurable product stock is 10, max to order is 6

I have multiple configurable products on my webshop and the quantity is set to 10, but if I want to order 7 items, I get a message "The specified number is not available". And if I order 6 items, it's ...
0
votes
1answer
41 views

Magento2 : Product Updates Not Showing on Front End - store scope issue

Problem: Certain product attribute updates are not being seen on the front end. Irrespective of re-indexing, cleaning and flushing the cache, etc. If I change them via Update Mass Attributes, then ...
1
vote
0answers
38 views

Magento 2 - bundle product

I want to sell in Magento 2 products that depend from production. I will explain this base on coffee. Let say I have 1 Kg of seeds arabika as a simple product. This translate to 900 g of ground ...
0
votes
1answer
33 views

Magento2 : Products showing “Out-of-Stock” in Frond-End and “In-Stock” in Backend

I am using Magento version 2.3.x and when I add a downloadable product, it is showing out-of-stock in the front end. but it is showing in-stock in the back end. how to fix this, I have tried my ...
0
votes
0answers
21 views

How to set bundle product out of stock if any associate product out of stock?

I want bundle product out of stock if that product's any child have 0 qty
1
vote
0answers
35 views

Product stock not returning to available stock in canceled order

Is there any explanation of why product stock from canceled order is not returning to available stock? Step to reproduce: I tried to order an item X (until place order) Open admin site, edit ...
0
votes
0answers
25 views

Concurrent checkout made negative/minus stock

Sorry, I'm asking this question again. I already put the question in Magento community to explore if there is any possibility to handle this issue. Also, I already explore that this issue was fixed in ...
0
votes
2answers
54 views

How to update product stock using custom script in Magento 2

How to create a script for update product stock. After the product stock update saves the product. Anyone helps me to create this script.
0
votes
0answers
27 views

How to reslove source and stock issue in magento2 bundle product

For Inventory Management, Single Source merchants may experience performance degradation with all products assigned to the Default Source and Default Stock. created and assigned all products to one ...
0
votes
0answers
129 views

Disable stock check / decrease when shipping an order in Magento 2.3.1

I have a Magento 2.3.1 shop with external software managing my stock levels. I have disabled the Decrease Stock When Order is Placed setting but with the new Magento MSI in Magento 2.3, the stock is ...
0
votes
1answer
17 views

Update Product Attribute based on Stock Levels [Magento 1.9]

I am trying to have two out of my Product Attributes updated once the Stock Level reaches 0, or goes above 0. Would this be possible ? Thanks
0
votes
1answer
78 views

Magento 2.3.1 How to display source or stock name on product page ? MSI Multii Source Inventory

How to display source or stock name and code on the product page? Where is information about a current stock or source name? Can I use the code from Sourceitem.php on the Product page? public ...
1
vote
0answers
20 views

Stock API - QTY and out of stock

I have an integration with an ERP system which is pushing stock qty to Magento2. The problem is that if the item qty becomes 0 Magento puts it out of stock, when the ERP updates the qty to say 10 the ...
0
votes
1answer
36 views

Stock for quantities over quantities 100 go up randomly - Magento 2

I have a problem whereby stock quantities with 3 or more digits (100 or more) go up randomly on my site. I am not sure what the problem could be. Stock quantity increments are disabled on every level....
1
vote
1answer
84 views

Magento 2.2 - event to detect qty change

I need to detect a change of qty in product (backoffice change after edit is enough for me). I was trying to do it with simple observer <event name="cataloginventory_stock_item_save_after"> ...
0
votes
1answer
15 views

Getting product stock levels / quantities in Magento 2.3

I have the following code to get a product collection but how do I also return back the stock levels too $products = $this->productCollectionFactory->create() ->...
0
votes
1answer
101 views

Magento 2: Event-Observer for whenever the stock status of product changes

Is there an event for whenever a product goes from In-Stock to Out of Stock and vice-versa. I basically need to programatically set the value of a custom product attribute depending on the stock ...
2
votes
0answers
37 views

Magento 2 REST API: Show In-stock products first in product listing API

I am looking into a headless magento approach. I am using the following API to list the products in a given category: V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&...
1
vote
0answers
30 views

stock filter is not adding to layered navigation in magento 2.2.7

Do all the setting but not get the filter in front end for stock
0
votes
2answers
39 views

Magento 2 stock update returns 0

Im trying to update the stock of my products programmatically, using this code: $stockItem = $this->stockRegistry->getStockItemBySku($sku); $stockItem->setQty($qty); $this->stockRegistry-&...
0
votes
1answer
34 views

Multiple Products, One Stock Quantity

Good Afternoon, I apologise if I ask or say anything seemingly ignorant or stupid however I am very new to Magento. I work for a company that sells laptop LCD panels all over the world. We have ...
0
votes
0answers
17 views

Magento 2 : Stock status not accurate

I have some products which they are out of stock in backend and also in catalog pages, but on the product page, they appear as in stock. This behavior is the same whether the flat product enabled or ...
0
votes
1answer
41 views

In magento 2 how to override stock availability in product detail page in custom module

In magento 2 how to override stock availability in product detail page in custom module app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml <?xml version="1.0"?> <page ...
0
votes
0answers
17 views

Rogue rows being removed from cataloginventory_stock_status

We have around 180,000 products and are having issues with salable quantity not matching quantity. We've narrowed it down to an issue with the table "cataloginventory_stock_status" When we reindex ...
1
vote
1answer
40 views

How to add available qty to cart when customer request more than available qty?

As asked in the question, Is there any possibility to add available qty(in stock) to the cart when customer requesting more than available qty. How magento behave with this situation? ex : I have 5 ...
1
vote
0answers
31 views

Trying to update stock on Magento OMS using API

I am trying to test out updating stock on the Magento OMS API by using the magento.inventory.source_stock_management.update method. The first step of getting the authentication token from the https://...