Questions tagged [stock]

Denotes questions related to stock management and configuration on Magento

Filter by
Sorted by
Tagged with
0
votes
1answer
21 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
24 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
27 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
17 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 ...
0
votes
0answers
22 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 ...
2
votes
2answers
75 views

isAvailable() and isSalable() return false for all products on frontend even though they are definitely saleable

I just completed a migration from M1 to M2 version 2.3.5-p1. All of the product and stock data was correctly migrated (I can see it in the database) but no matter what I do, products are all showing ...
0
votes
1answer
21 views

Showing stock status on Frontend

I am trying to find a solution for showing the stock status for 2 warehouses on the frontend Category and Product page. To explain a Little better. I have 2 sources connected to our saleable stock - ...
0
votes
0answers
17 views

Liquid Product in Magento 2.3.4

I have a store that sells liquid products (beer). The problem I am facing is that the salable stock is in liquid ounces. Example: 1. If a customer buys a growler, Magento should decrease the stock by ...
1
vote
1answer
21 views

Out of stock products: why do they appear in Collection::getAllIds and not in Collection::getItems

Im trying to get all products in a collection: out of stock and products in stock. So what I did is: /** @var $collection \Magentp\Catalog\Model\ResourceModel\Product\Collection */ $collection = $...
0
votes
1answer
18 views

Add product to quote, if he has zero stock qty

How i can add product (for example with 10 qty) to quote if this product has 0 stock qty.
1
vote
0answers
19 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 ...
0
votes
0answers
10 views

Magento 2 change qty based on availability

How i change qty programmatically based on availability? I have a lot products where availability is "out of stock" and their stock should change to 0 but when product is "in stock" qty should stay ...
0
votes
1answer
21 views

How can I add the available quantity per product on catalog on Magento 2.3?

On a category page, I try to display the available quantity per product but I cannot succeed. On the admin interface, as described in the manual, I have enabled for the attribute called ...
0
votes
0answers
27 views

Magento 2.3.4 Display Stock (Only X Left) Even when Negative

I have the Stock enabled for all products on my website, which shows the Only X Left right under In Stock on the Product Page. This is great and lets our customers know how many we currently have in ...
-1
votes
1answer
48 views

Explain Magento 2 stock index

Can somebody explain how stock index works in Magento 2 and what is it used for and how? If I set it "index on schedule" what exactly happens and how does it affect the shop if stock index is in "...
0
votes
0answers
15 views

Magento2.3.1 - Cin7 Stock Extension On/Off

I am trying to understand what the Stock Extension setting in Cin7 points to in Magento2.3.1. Here is the XML data (never sure If that is What It's called) for the setting when On vs Off. Can ...
0
votes
0answers
24 views

Magento2 - Build stock dynamically from product children

I am working on a custom product type that is in fact a link of subsequent product skus and I need to build the stock dynamically from its product children. I have created the custom product type and ...
0
votes
0answers
34 views

Magento 2.3 How to update product stock quantity programmatically in web serves

Magento 2.3 How to product stock quantity update in programmatically in web serves SoapClinet api request, I want to update multi products stock quantity.
1
vote
3answers
152 views

How to get salable qty in magento 2.3.3?

How to get salable qty of each Product and display in Product view page. Can someone help me? Thanks in advance.
0
votes
0answers
24 views

Magento 2: Move Stock info above Add to cart

I know this questions has been posted other times, but in my case didn't solve the issue. I need to move the Stock info before the add to cart button (in the product page of course). I put this code ...
0
votes
0answers
182 views

The requested SKU is not assigned to the given stock

When I access my admin panel and try to send the order I received this message below, how could I fix it? I suspect that it'd be caused by the MSI.
0
votes
0answers
45 views

Magento 2: how to get only configurable products that have some in stock child without looping?

I want to get only those configurable products whose any child are in stock. I.e filter out the ones that have no child that are in stock. Also, i want to achieve this without looping since it's quite ...
0
votes
2answers
43 views

Display “only X left threshold” and stock status on category view

I'm new to Magento(2) and I'm trying to display Stock Status, stock count, and quantity field in category view like in product view. I don't know where to get theses values and where to put it... I'm ...
1
vote
0answers
27 views

Magento 2 - Layered navigation show products with salable quantity to 0

In my store I have all products with only 1 quantity. When I buy a product, its "Salable Quantity" is 0 instead its "Quantity" stays 1 and thats ok, because the product is only "reserved" and the ...
1
vote
0answers
27 views

async rest api product can't set `enable_qty_increments`

I would set up enable_qty_increments in my store. I've edit store settings cart options to manage this but when I try to use rest api to update my product always this request can't set options relate ...
1
vote
2answers
250 views

Update item custom quantity and salable quantity value after place order in Magento 2

I need to decrease purchased item saleable quantity with custom value (x* ordered_qty) after place order in Magento 2.Right now I'm using the following observer and class to update the quantity of ...
1
vote
1answer
15 views

Magento 1 php script product in stock sent email

I would like a php script that when specific products, which I define, have a qty of higher than 0. I automatically receive an e-mail from this. Anyone have an idea how I can easily make a script out ...
1
vote
0answers
54 views

Magento 2.3.3 Upgrade Error - You cannot define a correlation name 'stock_item' more than once

Getting Error on Bundle Product page on Magento 2.3.3 after Upgrade. Exception #0 (Zend_Db_Select_Exception): You cannot define a correlation name 'stock_item' more than once Thanks
0
votes
1answer
41 views

How to show out of stock in configurable product's option selection Magento 2.3.2

How to show out of stock in configurable product Magento 2.3.2 like the below image https://i.ibb.co/JpKdwNx/5210046c-6f62-11e6-8db7-abda30a5c09d.png
3
votes
1answer
245 views

Magento 2.3 MSI Custom Product Type, Stock Tracking, and Product Category Collection Filtering?

I need to create a custom product type that has custom stock functionality and does not behave like a simple product, bundle, or configurable. To build out this product type I need to understand how ...
0
votes
1answer
30 views

Magento 1 check if any of cross sell items are in stock

How can I check if any of the cross sell items are in stock in our Magento 1 store? I want to load some php if rule, that only display a text line, if any of the cross sell items are in stock. My ...
1
vote
1answer
83 views

Update Product QTY right before place order from external remote API

We want to update and check product quantity when user clicks on "Place Order" button. If product is outofstock in remote API and get 0 qty then user should not able to "Place Order" and display ...
0
votes
0answers
66 views

Magento 2 Do we need to reindex & cache clean for Product Qty update

I need to update product Qty programmatically, I have my main store where I have my stocks details so I need to update to Magento whenever it's triggered from my Main store or by cron with interval. ...
0
votes
0answers
41 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. ...
1
vote
0answers
241 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
22 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
67 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
241 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
24 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
85 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 ...
1
vote
0answers
18 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 ...
2
votes
2answers
457 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
591 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
560 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
62 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
44 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
28 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
731 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
43 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
2answers
79 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 the error Unable to save Stock ...

1
2 3 4 5
9