Listed below are the particular measures that you’re going to comply with in this Magento 2: Display/disable Out of stock product by your own:
- On admin page, Click on Stores, then under the Setting section, choose Configuration.
- In this page, you find the Inventory section under Catalog. Expand the Stock Options section and you can start to set the custom status of the product.
- Before coming to the Out of stock product section, you need to enter the field.
- Then we can come to the part that allows you to display or disable the product out of stock in Magento 2.
Every store-owner must be so familiar with the out of stock status of their product. It’s one of so many other things in stock management. It’s more difficult with an online store. However, Magento sees this problem and add a lot of improvement in your new version publish in 2015, Magento 2. Magento 2 has a separate part for users to manage out of stock products, you can set, display or disable product that out of stock and many things else.
First of all, you need to know that the out of stock product indicates when a product needs to be reordered, and can be set to any number greater than zero. However, I can use this stock management for other purposes like to capture new customers, rather than sell to high-quantity buyers, in that cases, you can set a maximum quantity to prevent a single buyer from taking out your entire inventory.
Contents
How to display or disable the availability of each item as “In Stock” or “Out of Stock”?
- On admin page, Click on Stores, then under the Setting section, choose Configuration.
- In this page, you find the Inventory section under Catalog. Expand the Stock Options section and you can start to set the custom status of the product.

Before coming to the Out of stock product section, you need to enter this field.
- Set Items’ Status to be in Stock When Order in Canceled: You choose YES when you want to return items to your stock if an order is canceled.
- Decrease Stock When Order is Placed: if you want to adjust the quantity on hand when the order is placed, you choose Yes
Then we can come to the part that allows you to display or disable the product out of stock in Magento 2.
- You want to display the product out of stock, you set the Display Out of Stock Products section is Yes. In contrast, set No if you want to disable it.
If price alerts are enabled, customers can sign up to be notified when the product is back in stock. I will have another post for this configuration.
About the Out of stock product notification, you have to set the following:
- Display X left Threshold field to allow you to display a message that is “Only x left“. You just have to enter the quantity of product in stock reach the threshold. Your number is all your choice. Take a sample, if you set the number is 5, the message “Only 5 left” appears when the quantity in stock reaches 5. The interesting thing is this notification adjusts to reflect the quantity in the stock until the quantity reaches zero.
- With the product page, to display the “Out of stock” or “In stock” notification , you set it in Display Products Availability In Stock on Storefront field. Set yes to display the notification “Out of stock” on the product page and set no for “In stock” notification

- Note: After you done all the steps, you can go to your store in customer view and check the out of stock product status for sure. Sometimes it is not showing up, you can go to Product Detail Section and check the Product Online field, did it turn on or not.
All the thing I just said above is the way I usually use when I want to set the product out of stock status is the display or disable, beside that is some configuration of Out of stock notification in Magento 2. Hope my post can help you to manage the stock management by your own.
Thanks for reading!
Increase Numbers of Orders by Reduce Checkout Steps!
Explore Magestore One Step Checkout for Magento 2 >>>HERE<<<