How to Enable Stock Alert and Display Out of Stock Product in Magento 2

How To Enable Magento 2 Stock Notification & Display Out Of Stock

by Van Nguyen

There’s no doubt that to enable Magento 2 stock notification and display out of stock products is a must-do in any store. These features help store owners to manage their stock better and enhance the shopping experience of their customers.

When the product is temporarily not in stock, the out of stock feature can notify customers about the stock status. In the meantime, the stock alert feature encourages them to come back to buy when the item is back in stock.

However, as almost everyone knows how beneficial those features are, some people still don’t know how to enable them.

This tutorial blog will guide you to display Magento 2 out of stock products and enable Magento 2 stock notification email.

How to Display Out of Stock Products in Magento 2

magento out of stock - product display

On the admin panel, navigate to Stores > Configuration.

In the Catalog drop-down, select Inventory.

In the Stock Options setting, you can see the Display Out Of Stock Products field.

To enable displaying Magento out of stock products in the frontend, uncheck the ‘Use system value’ box and set the value to ‘Yes’.

magento out of stock - configs stock options

Finally, click the Save config button in the upper right corner to apply this configuration.

How to Enable Stock Alert Email in Magento 2

In some cases, customers would want to buy a product that is currently out of stock.

To encourage shoppers to buy from you, you should enable sending alert emails to notify them when the product is back in stock.

By doing that, when the product is temporarily unavailable, a link called “Notify me when this product is in stock” will be displayed in place of the Add to Cart button. The customer can click this link to subscribe for the product stock alert and get the notification email when the subscribed item is back in stock.

magento 2 product stock alert

The customer can sign up for stock alert notification

This function helps the admin know which products are highly demanded and quickly refill stock with the products that customers want to buy. The admin can understand customer preferences and provide better service for their target customers. However, the stock alert function is only available for the logged-in customer by default. Guest users or not-logged-in customers won’t be able to sign up for product stock alert.

Here are 4 simple steps to enable Magento 2 stock notification:

Step 1: Go to Stores > Configuration > Catalog > Catalog > Product Alerts.

magento out of stock - set stock alert email notification

How to set up product stock alert

Allow Alert When Products Come Back in Stock: choose Yes to enable stock alert.

Step 2: In Stock Alert Email Template: choose the template to apply for product stock alert email.

Step 3: In Alert Email Sender: select the store contact as the sender of the Magento 2 stock notification email.

Step 4: Click the Save config button to save configuration.

*Please note that the message “Notify me when this product is in stock” appears only when you enable displaying Magento 2 out of the stock product.


I hope this post can help you to manage stock and enable Magento 2 stock notification easily. In case you want more advanced stock alert functions than the default, BSSCommerce has developed Magento 2 Plugin – Out of Stock Notification extension with following features:

  • Enable Magento 2 stock notification for guests and not logged in customers
  • Notify customers via emails when products come back to stock
  • Manage all customer subscriptions for out-of-stock products in the backend
  • Display product stock alert in many pages: product, category and search result pages
  • Enable stock alert for even children products of configurable, bundle and grouped products


BSS Commerce is one of the leading Magento extension providers and web development services in the world. With experienced and certified Magento developers, we commit to bring high-quality products and services to optimize your business effectively. Furthermore, we offer FREE Installation – FREE 1-year Support and FREE Lifetime Update for every Magento extension.

Next Reading Suggestions

© 2019 BSS Commerce owned by THANH CONG INTER ., JSC. All Rights Reserved.
Business registration certificate no. 0106064469 issued by Hanoi Department of Planning and Investment on 19 December 2019.
Legal Representative: Mr. Nguyen Quang Trung.