Questions tagged [stock-status]

The tag has no usage guidance.

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

Magento 2.4.0 stock status not changed after 0 quantity in multi source inventory

I added two inventory source location in Magento 2.4.0 to manage different warehouse inventory. And also I added two different website. For example One warehouse is Canada and another warehouse in USA....
Niraj Patel's user avatar
2 votes
1 answer
87 views

Magento 2.4.3 - Green and red light for in stock and out of stock

A bit weird question that I got from my client. Is there a way to make a green "light" or "dot" just next to where it says in stock and a red one for where it says out of the stock ...
Jan-petter Havna's user avatar
1 vote
1 answer
605 views

How to set product OUT OF STOCK and enable Manage Stock for this product in Magento 2.4

I work on Magento 2.4 and I'd like to enable programmatically for selected products "Manage Stock" option and set status Out Of stock. Like here: But I did not found how it should be done ...
Sebas's user avatar
  • 27
0 votes
0 answers
783 views

indexing not updating cataloginventory_stock_status

After upgrading to 2.4.4 or after doing a second store on same installation (dont know), the field cataloginventory_stock_status.stock_status is not updating from 0 to 1 when I import new products/...
AP87's user avatar
  • 145
0 votes
1 answer
464 views

Magento 2.3: Add stock status filter in product admin grid

I want to add stock status dropdwon filter in product admin grid like this: I tried this: https://magecomp.com/blog/how-to-add-stock-status-column-in-admin-product-grid-magento-2/ but it didnt work.
mechanic's user avatar
  • 360
0 votes
1 answer
218 views

isSaleable product save

Use Case From a product with quantity 0 and Out of stock status. I have an event <event name="catalog_product_save_after"> <observer name="stock_alert" instance="...
Claims's user avatar
  • 1,049
0 votes
1 answer
88 views

Update IsInStock attribute in observer by 'catalog_product_save_after' event in Magento2.3

I have tried this code in Magento 2.3.4 1.created events.xml in Dapl\Shortdurability\etc\adminhtml 2.created Productsaveafter.php in Dapl\Shortdurability\Observer. <?php namespace Dapl\...
Binayak Sabat's user avatar
0 votes
1 answer
58 views

How to update discontinued items from vendor in magento2

we update stock from vendor, when a product is out of stock or discontinued, they are not getting update. the feed to qty=0 else just remove them from the feed and I cannot know which items they are ...
Dan's user avatar
  • 11
0 votes
1 answer
92 views

Magento 2. Stock display question

Is there a way to implement desired logic ? In stock --> display "in Stock" and product can be added to cart Out of stock -> does not display any message and product can be added to ...
RoboxFuze's user avatar
-1 votes
1 answer
298 views

Magento 2 Stock Status hide/show based on 'manage stock' status

I am trying to figure a way to hide stock status/availability on product page when it is set to 'don't manage stock.' And if it is set to 'manage stock', it should show stock status/availability on ...
RoboxFuze's user avatar
0 votes
2 answers
338 views

Magento 2 Stock Status

This question has been answered for Magento 1. (see: here). As I am migrating to Magento2 and need the same logic here is the issue: I am trying to figure a way to hide show stock status/availability ...
RoboxFuze's user avatar
0 votes
1 answer
436 views

Can we update auto Product Attribute On Base of Stock Status In Admin Product Magento 2.4?

I want to update automatically Product Attribute on Base of Stock status in Product, I have created few attributes with Yes/NO. Now I want when the product will become out of stock that attribute will ...
Wajahat Bashir's user avatar
1 vote
2 answers
3k views

Magento 2.4 product stock status not change after salable quantity become zero

I tried the below scenario in Magento 2.4.0 version Anyone please try the below scenario in your Magento 2.4 version ? I created one configurable product and it's two simple children with 100 qty. ...
Niraj Patel's user avatar
0 votes
2 answers
1k views

Display stock status on product detail

I'm trying to figure out how to show stock status on product page (In stock/Out of stock). I tried to change stock message from the Catalog page but it didn't work ! I guess its because I use a custom ...
crowd42's user avatar
0 votes
0 answers
135 views

Magento 2.3.2 CE Inconsistent stock status. "In Stock" when OOS and vice versa

I am having some odd inconsistencies with Magento 2.3.2 when it comes to "Quantity_and_Stock_Status". I would like to add this to my layered navigation so customers can filter out the OOS ...
Andy's user avatar
  • 47
0 votes
1 answer
113 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 ...
Kasper Elund's user avatar
0 votes
1 answer
1k 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 ...
Alice's user avatar
  • 148
0 votes
1 answer
298 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) { ...
Vinod Kumar's user avatar
  • 2,045
0 votes
1 answer
72 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?
Pantelis's user avatar
  • 109
0 votes
1 answer
73 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 ...
ClaudiaMvH's user avatar
1 vote
1 answer
207 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 ...
Kaushik Kumar Roy's user avatar
0 votes
1 answer
232 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 ...
Shilpi Varshney's user avatar
0 votes
1 answer
307 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 ...
Shabeersha Salim's user avatar
0 votes
2 answers
482 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 ...
gabtzi's user avatar
  • 636
1 vote
0 answers
82 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 ...
MagentoDev's user avatar
1 vote
5 answers
3k 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 ...
fmsthird's user avatar
  • 4,582
3 votes
4 answers
8k 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 ...
Chirag Parmar's user avatar
4 votes
2 answers
1k 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 ...
domfitty's user avatar
  • 399
2 votes
1 answer
3k 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 ...
Kirti Nariya's user avatar
  • 3,421
1 vote
3 answers
3k 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. ...
Kirti Nariya's user avatar
  • 3,421
1 vote
1 answer
12k 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 ...
Kirti Nariya's user avatar
  • 3,421
0 votes
1 answer
379 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 ...
Ciprian Poiana's user avatar
2 votes
4 answers
20k 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 $...
Chintan Kaneriya's user avatar
2 votes
0 answers
1k 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 ...
Rajender Kumar's user avatar
0 votes
1 answer
2k 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; ...
David Duong's user avatar
0 votes
0 answers
455 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 ...
Daniele Rovatti's user avatar
0 votes
2 answers
2k 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?
Rob D. A.'s user avatar
  • 867
1 vote
3 answers
2k 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.
Srinivasan Lakshmanan's user avatar
1 vote
1 answer
1k 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 ...
Shoaib Munir's user avatar
  • 9,344
1 vote
1 answer
331 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 ...
Fokker's user avatar
  • 375
1 vote
0 answers
1k 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]...
Mark CR's user avatar
  • 21
0 votes
1 answer
1k 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 ...
MGPM's user avatar
  • 741
0 votes
0 answers
116 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 ...
user2661055's user avatar
0 votes
1 answer
964 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 ...
Jaisa's user avatar
  • 2,556
5 votes
1 answer
4k 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 ...
Kirti Nariya's user avatar
  • 3,421
1 vote
1 answer
994 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 ...
Muhammad Hasham's user avatar
3 votes
0 answers
525 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?
zus's user avatar
  • 155
0 votes
2 answers
116 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 "...
FabienC's user avatar
2 votes
3 answers
1k 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.
user7064432's user avatar
1 vote
0 answers
41 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 ...
DEEPAK KUMAR's user avatar