Questions tagged [stock-status]

The tag has no usage guidance.

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

Magento2 :: Need to set product out of stock for particular category when quantity decrease to 2

Magento2 Need to set products out of stock for particular category when qty is decrease to 2. For all other category is 1. How can I achieve this?
0
votes
1answer
25 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
1answer
21 views

How to add stock filter in stiemap.xml in Magento 2.3?

I want to exclude out of stock products from the sitemap.xml. I want to add stock filter like status or visibility filter in the product collection: public function getCollection($storeId) { ...
0
votes
0answers
13 views

Global stock not applied in store scope in magento 2

I created a configurable product in magento 2.3.3. The is_in_stock field is global by default. But I don't know why, when I change the is_in_stock value for "All store views" scope, I still ...
0
votes
1answer
14 views

configurable products not change stock on child select. Is it defaut behavour?

Is it the default behavour of magento 2.3 when we select a child product to not refresh the stock as the price? Is it something known to solve this issue? or, any good extension for this?
0
votes
0answers
13 views

How to display only left stock status for configurable products in product detail page magento 2?

By following this link(https://www.mageplaza.com/kb/show-stock-remaining-items.html), it shows in simple products only. But I want to display in configurable products also. Please help me.
0
votes
1answer
33 views

Magento 1.9 Remove stock status from order confirmation email

I can't seem to find how to remove the stock status from the order confirmation (which goes to the client). We would like to remove it because we don't like to inform the client about it. I've already ...
0
votes
0answers
8 views

Magento stock status index inconsistent with product table after reindexing

I migrated from Magento 1.8.1 to 2.2.3. Problem: in the shop I see simple products that are out of stock even when I filter on stockstatus = in stock. What I have found out, is that the index for ...
1
vote
0answers
34 views

Magento 2 Duplicating products changes the original product Qty to 0

I am using Magento 2.3.4 which was recently upgraded from Magento 2.1.15. Currently i am facing an issue with product qty after duplicating products. Explanation: After duplicating the original ...
0
votes
1answer
29 views

How to change stock status Instock permanently in magento2.3?

Please shown below image. If quantity is 0 aur greater than 0 select Instock only. No need to select out of stock if quantity below 0. Can i change this functionality through admin panel or need to ...
0
votes
1answer
28 views

Set configurable products to In Stock while creating

Currently when I am creating a new configurable product, it is by default set to out of stock, even though I have added quantity to each of the configurable products. To set the product as in stock I ...
0
votes
0answers
51 views

How to get product stock info in product list rest API in magento 2.3?

To get product details i am using the following rest api. {{magento_base_url}}/rest/V1/products?searchCriteria[page_size]=4&searchCriteria[currentPage]=1 In default it does not return stock_item ...
0
votes
2answers
86 views

How to get StockStatus in a block of type Magento\Catalog\Block\Product\View

I have a block of type Magento\Catalog\Block\Product\View. I would like to retrieve the current product's stock status. The products in my eshop are both simple and configurables. For ...
0
votes
0answers
18 views

Magento 2 - Product with 0 quantity doesn't show blocks using CatalogInventory module in frontend

If Backorders are enabled and product is set to In Stock but quantity is at 0 it does not show Stock quantity as 0. I am trying to get it to show 0 so I can change the logic to show a message when it ...
0
votes
0answers
22 views

Magento2.3: Product is showing as OUT OF STOCK even the product has set to stock

I have created a simple product and set it as IN STOCK and given 1000 in quantity field. However, when I check the product in front-end, I can see the product is showing out of stock. Why it is ...
1
vote
4answers
369 views

How to load stock item using product_id in Magento 2?

I am trying to get the stock status (is_in_stock) of an item. Currently, I am using the \Magento\CatalogInventory\Model\Stock\StockItemRepository which only accepts stock item id to fetch the ...
0
votes
0answers
13 views

Magento 2 Get recently In Stock Products from Out of Stock

I need to get the product list which is updated recently to In Stock from Out of Stock. For example I have 100 Out of Stock Products and I changed to In Stock. So now I need to get those 100 products (...
3
votes
4answers
2k views

How to update product qty and Stock Status update programmatically by product id : Magento 2

I want to update product qty and change Stock Status as in stock by programmatically by product id. I dont want to insert new product, but I want only update existing product by its id. Any one know ...
2
votes
2answers
593 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 ...
2
votes
1answer
822 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
3answers
972 views

Magento 2: Get Product Stock status details in Category List Product details Rest API

I have checked Category Products list API and gives list of the categories products. But don't get stock item details in products details. I want to need stock item details in products details. ...
0
votes
1answer
2k views

Magento 2: Get Product Stock status details in Rest API

Need to get Product Stock Status in products details using Rest API. Method: GET Using API URL: http://testwebsite/rest/en/V1/products/sku Above api returns products details but need also ...
0
votes
1answer
125 views

Grouped Product Display a sum of all associated products stock

I search everywhere but cannot find a good answer. In my 1.9 magento rwd theme, I set for single product to display the stock qty after stock status, but when i put some simple products to a grouped ...
0
votes
4answers
4k views

How to get product stock status on the listing page in Magento 2?

I am using Magento 2.3.1 I want to display stock status on the listing page. So, how can I get "Stock Status" attribute value on the listing page? I have tried below code: <?php $...
2
votes
0answers
336 views

Magento2 Products filter quantity_and_stock_status is not working

We are developing an iOS app for a Magento website using Magento2 rest apis. App is fetching and showing all products added to the magneto website. But some of the products are not being added to the ...
0
votes
1answer
1k 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
0answers
183 views

Magento 2 Inventory and Stock Status

I'm trying to figure out why when the inventory quantity of a product reaches 0, the stock_status for the product is still In Stock. This happens after reindex as well. The only way to get the product ...
0
votes
2answers
521 views

Magento 1.9 - how to get single product stock data by id?

How to get all data about the product having id including stock status and quantity?
0
votes
3answers
389 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.
1
vote
1answer
174 views

Magento 2 - Cancel order incrementing 2 quantity of product

In Magento 2.2.5 EE Before placing order: Product quantity = 1 stock status = 1 After placing order: product quantity = 0 stock status = 0 After cancel order: product quantity = 2 stock status = 1 ...
1
vote
1answer
140 views

Magento 2 REST API: extension attribute for saleability not working for some products

I needed product's stock status in the product listing API: V1/products?searchCriteria[filter_groups][0][filters][0][field]=category_id&searchCriteria[filter_groups][0][filters][0][value]=144 ...
1
vote
0answers
453 views

Magento 2 Rest Api - Is this searchCriteria filter correct?

I'm trying to retrieve virtual products, which have been modified before a certain date and which still are in stock I'm using this /rest/V1/products?searchCriteria[filter_groups][0][filters][0]...
0
votes
1answer
226 views

Sort product collection on stock status in magento2.3

I want to sort my list.phtml and catalogsearch by availability. Mean that when category page or search result page loads, first show "in stock" product and at the end show out of stock items. Don't ...
0
votes
0answers
39 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 ...
0
votes
1answer
361 views

Unable to save the product stock status as “Out of stock” in magento 2

I have imported a single product via backend. The product stock status is mentioned as 0 ("is_in_stock => 0") in csv sheet which i imported. The product successfully saved. But while opening the ...
5
votes
2answers
2k views

Magento 2: Product stock status is not automatically updated from Out of Stock to In Stock

I have facing issue in update admin product stock status Out of Stock to In Stock in Magento 2.3.1 I have updated product quantity 0 and save the product that time automatically updated stock status ...
1
vote
1answer
517 views

Magento 2.3 - Fetching child/associated products of configurable product only returns In Stock products

In order to fetch all associated products of configurable product. I used this code $childProducts = $configurableproduct->getTypeInstance()->getUsedProducts($configurableproduct); It return ...
2
votes
0answers
122 views

What is the difference Between cataloginventory_stock_status & cataloginventory_stock_status_idx

If I use cataloginventory_stock_status and cataloginventory_stock_status_idx return different values, what is the main difference between these two tables?
0
votes
2answers
73 views

Custom Availability not working anywmore with new template [magento 1.9]

When I set up a product in stock "-1" the availability is not displayed, the product always displays "In Stock". Is it possible to add a condition for products in stock "-1" to display the "...
1
vote
3answers
232 views

How to get all products with Qty in magento2

I am trying to get all products with it's stock qty in magento2. please let me know if anybody have solution.
1
vote
0answers
26 views

How to get remain stock of product , if some of added in cart

I am just modifying magento add to cart ajax functionality. I want to check remain quantity of product if some is added to cart. But i tried ,many ways but i did not success. Instead of message ...
0
votes
0answers
293 views

Option product quantity is zero, not displaying in configurable product in magento 2.2

I tried admin panel settings Products -> Catalog ->inventory Dispaly product if out of stock (yes). But still for configurable product of my swatch option quantity is (0) zero, that option(child) ...
0
votes
1answer
56 views

How can I add different stock labels

How can I add new stock labels to magento 2 so they appear in the product stock status select box ? Thanks.
1
vote
0answers
519 views

Programmatically updating stock in and out Magento 1

I have a magento 1 store and also a third party, centrally controlled stock system. Now, I have a script that imports stock from this third party and updates the stock in the magento database which ...
0
votes
1answer
633 views

How to show “out of stock” child products for configurable product in list and product view page magento 2?

I am trying to show out of stock child products for configurable product in details and product view.I changed the settings from catalog inventory to display out of stock products even it is not ...
1
vote
1answer
878 views

Magento 1.9 Update stock product status with sql query

We want to update stock status with sql query. This query worked and products status does as out of stock in product page. But when i did clearing cache, products is appearing in stock when i check ...
0
votes
1answer
117 views

Magento 1 Stock Status

I am trying to figure a way to hide show stock status/availability on product page unless it is out of stock. I have all the settings configured to where it displays stock status on front end as ...
0
votes
1answer
2k views

How to display available quantity of each product in Magento 2

I want available stock Qty to be displayed right underneath of the home page and quick view like I have marked on,what would be the easiest approach to achieve this? (I use an advanced warehouse ...
1
vote
2answers
102 views

display stock information to logged customer only in Magento 2?

I want to display stock only to logged customers in product page. can you guide me how can I do and in which file?
3
votes
3answers
218 views

How to display stock information to logged in customer only in Magento 2?

I want to display stock only to logged in customers. can you guide me how can I do?