Mady is the CTO & Co-founder of Magentopost.com which has been providing retail solutions for Magento merchants since 2009, With over 10 years experience of working with Magento and clients all over the world, he gained great knowledge on e-commerce development, order management systems, inventory control & retail POS.
How To Hide/Show Out Of Stock Product In Magento 2
March 08, 2024 -
Magento 2 Admin
You can hide/show a out of stock product from the catalog by changing its visibility settings In Magento 2. You can control whether out-of-stock products are displayed in your store or hidden using the following steps:
Solution 1
Quick Step :
store > Configuration > Catalog > Inventory > Stock Options > Display Out Of Stock Products > Yes or No
Solution 2
Step By Step With ScreenShot :
1. Login to the Magento Admin Panel: Open your web browser and navigate to the Magento Admin Panel.
2. Store > Configuration: In the Admin Panel, go to store > Configuration
.
3. Catalog > Inventory : In the Admin Panel,
go to Catalog > Inventory > Stock Options > Display Out Of Stock Products
.
To show out-of-stock products, follow the same path and set Display Out of Stock Products to “Yes.” After saving, the products will be visible, but marked as out of stock. You can also enable the “Notify Me When Back in Stock” feature to inform customers when the product becomes available.
4. Clear Cache and Reindex: After making changes, it’s a good practice to clear the cache to ensure that the changes take effect. You can do this by going to System > Cache Management
and clicking on “Flush Magento Cache.”
By setting the visibility to “Not Visible Individually,” the product will not be shown in the catalog, but it can still be accessed through direct links or search results if someone knows the product URL or name. If you want to completely disable the product and prevent it from being accessed even through direct links, you may consider changing its status to “Disabled” in addition to adjusting the visibility settings.