Magento 2 Out of Stock Notification is an add-on using which users can get notified when an out of stock product gets back in stock and is available for the purchase.
The users just have to provide their email id and they will receive a mail when the product gets back in stock. The admin can choose whether the users get notified automatically or manually.
Watch the below video tutorial to understand Magento 2 Out of Stock Notification extension workflow:
Features
- The admin can enable or disable the low stock notification.
- Product quantity can also be set by admin for low stock notification.
- The customer will receive an email notification when the product gets back in stock.
- Registered users email id will be automatically filled, they just have to click on ‘Notify Me’.
- The admin can choose to notify users automatically or manually(for low stock notification).
- The admin can view all the notification requests in which product name, notification status, and customer’s email id are mentioned.
- Guest users can enter their email id for receiving notification.
- The admin can also delete a request.
- The admin can also configure the out of stock email notification templates which will receive by the subscribers as well as the admin.
- Works for all types of product ie: Simple, Configurable, Virtual, Grouped, Bundle and Downloadable products.
- Customer can see there Out Of Stock product list and even the status that is still pending or Notified and can also perform action as delete the product from the list,
- GraphQL support is available for the extension.
- This Magento 2 extension is compatible with the Hyva theme.
- Note: To use Magento 2 Low Stock Notification module following configuration should be enabled.
Stores -> Configuration -> CATALOG -> Inventory -> Stock Options -> Display Out of Stock Products -> Yes
Installation
The installation is quite simple just like the standard Magento 2 plugins.
#Download Module
Firstly, you need to log in to the Webkul Store, go to My Account>My Purchased Products section, verify, and then download and extract the contents of this zip folder on the system.
#Upload Folder
Once the module zip extracts, follow path src>app and then copy the app folder into the Magento 2 root directory on the server as shown below:

# Run Commands
You need to run the following commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
Install Extension from Adobe Commerce Cloud Marketplace
If you have purchased Magento 2 Stock Notification extension from the Magento Marketplace then please follow the below process or visit this link.
#1 Get Access Keys
You need to get access keys, navigate to My Profile in Adobe Commerce Marketplace, then choose Access Keys in the My Products section.

Go to Adobe Commerce Cloud and then you need to copy both the Access Keys – Public Key and Private Key. These access keys will be needed in the next steps for authentication.

If access keys are not created earlier, click Create A New Access Key, enter any name and click OK.

#2 Update composer.json File
To know the component name and version number, go to your Magento Marketplace account section, My Profile>My Purchases, then find this extension to view the details.
Please note – Below is an example image, every extension will have its unique component name and version.

After that, navigate to your Adobe Commerce project directory and update your composer.json file in the following format.
composer require <component-name>:<version>
For example, to install version 5.0.0 of Magento 2 Stock Notification extension you need to run the following command:
composer require webkul/outofstocknotification:5.0.0
#3 Enter Access Keys
Now you will need to enter the Access Keys that you obtained as explained in the first step #1 Get Access Keys.
Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
#4 Run Command
You need to run the following commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento indexer:reindex
php bin/magento cache:flush
Language Translation
For translating the module language, navigate through src/app/code/Webkul/OutOfStockNotification/i18n and edit the en_US.csv file.
Thereafter, rename the CSV as “en_SA.csv” and translate all right side content after the comma in the Arabic language. After editing the CSV, save it.
Then upload it to the path src/app/code/Webkul/OutOfStockNotification/i18n where the Adobe Commerce Cloud is installed on the server.
The module gets translated into the Arabic Language. It supports both RTL and LTR languages.

Multi-Lingual Support
For multilingual support, the admin will navigate through Store->Configuration->General ->Locale Options.
After that, select the locale as English (United States) (the language into which the admin wants to translate his store content).

Admin Configuration
First of all the admin has to navigate to Stores->Configuration->Webkul->Out Of Stock Notification. Then, four sections will appear:

1. Enable Out of-Stock Notifications
Enable Module on Frontend
The admin can enable or disable the module on the front end.
In doing so, the admin allows the customers to add their email addresses so as to get the notification as soon as the product gets back in stock.
2. General Settings
Select Notification Method
The admin can set the notification method as Auto or Manual.
In Auto, the notification emails will be automatically sent to the user whenever the product gets back in stock. In Manual, the admin has to manually notify the users.
Admin Email-id
In the Admin Email id field, the admin has to set an email id from which all the notification emails will be sent to the users.
Admin Name
In this field, the admin has to enter his name.
3. Low Stock Notification Settings
Low stock notification is used to send out a low stock notification to the subscribers whenever the inventory of a product(for which they subscribed for the In Stock notification) reaches the minimum specified level.
For example, when the inventory of a product gets below the specified limit(if set as 5 units) then the Subscribers will receive a low stock notification for the same product for which they initially subscribed for the in-stock notification.
The chosen receivers will receive the email notification for Low Stock.
Enable Low Stock Notification
The admin can enable or disable the low stock notification.
This means that if the admin has enabled the low stock notification then the users will receive the notifications whenever a product gets low in stock.
Low Stock Quantity
The admin has to set the number of low-stock notifications.
Select Low Stock Notification Template
In this field, the admin has to select an email template for low-stock notifications.
Cron Functionality :
The admin can set the cron functionality for low-stock products mail and it will run via the following commands.
php bin/magento cron:install
php bin/magento cron:run
4. Out of Stock Notification Email Settings
Under ‘Out of stock Email Notifications‘ the admin can configure:
- Notify Admin of New Request.
- Notify Customer of new Request.
- Select Admin & Customer Notification template.
- Select the product in the Stock Notification template(The Default one).
The MSI Feature: For Stock Management
To add a new source, the admin must navigate through Store > Inventory > Sources.
The admin will find the Add New Source button which will help the admin create a New Source.

As the admin clicks on the ‘Add New Source‘ button, a New Source page opens up.
The admin will have to add the General details, Contact Info, the Address Data as shown in the image below, so as to create a new source.

On saving the details, the source which the admin creates (here, mac unique store), is visible under the source list as shown in the image below.

Assigning Stock to a Source
Further, the admin can assign stock to the sources by navigating through Store > Inventory > Stocks.
The admin will find an Add New Stock tab to create a new stock as shown in the image below.

As the admin clicks on the Add New Stock tab, the admin can configure the General details, Sales channels, and Sources.
The admin will have to click on the Assign Sources tab under Sources as shown in the image below.

It redirects to the Assign Sources page, where the admin will have to select the sources from the given source list, and thereafter click on the Done button.

Under the Sources option, the sources that the admin selects will display against Assigned Sources as shown in the image below.

On saving the details of the new stock, a success message shall display on top of the page as shown in the image below.
Also, in creating new stock, the main website must be chosen as shown in the image below.

Frontend – Out Of Stock Notification
Guest User
If the admin has enabled the module on the front end from the admin panel.
The guest user has to enter his/her email id and then click on Notify me option if he/she wants to get notified about when the out-of-stock product gets back in stock and available for purchase.

Registered User
Whenever registered users visit an out of stock product page, they can see that their email id is already been filled in the email id field.
So, They can also change the email id if they want and after that, they can click on ‘Notify Me to receive a notification when the product gets back in stock.
After entering the email id and then clicking on ‘Notify Me, the customer will get a confirmation message, as shown in the screenshot below.

When a user will click on ‘Notify me’ he/she will receive a notification email as shown below:

Configurable Product
For configurable products also, if any user visits the configurable product’s page and any of their associated product is out of stock,
Then, the user can request for that product and will be notified for that particular associated product that is out of stock.

Also, either the registered user or the guest user moves their cursor over the email id field. An info message in the black box will be visible to the users.
Note: If Configurable Product itself is ‘Out of Stock then ‘Out of Stock Notification’ works the same as it works for Simple Products.
Email Notification
When the product gets back in stock, the customers will receive a notification email on their registered email id.

Backend – Managing notification request
Admin has to go to Out of Stock Notification –> See All Requests to view all the notification requests made on the web store.

Under All Requests, the admin can view all the requests with the user email id, notification status, and product name on which the request is made.
From here the admin can manually notify the user by selecting the user and then selecting action as Send Notification. The admin can also delete a request from here.


CUSTOMER-END :
Customers can see their My Out Of Stock product here and the status that is still pending or Notified and can also perform the action such as delete the product from the list.

That’s all for the Out Of Stock Notification for Magento 2. Furthermore, if you still have any issues feel free to add a ticket and let us know your views to make the module better Support Link
Current Product Version - 5.0.4-p2
Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x

12 comments
If you have custom requirements it can be done through customization. You can email us your complete requirements at support@webkul.com and we will get back to you accordingly.
Thank You
Webkul Team
Yes, it is compatible you can purchase the module with Enterprise version from our store and you will get the updated version of the module – https://prnt.sc/tzxmfv
Regards
Webkul Team
I have added multiple mail templates for different languages, but all the notifications are coming in one language associated to one store view.
So for a logged in user, based on what information is decided from which store view the mails have to be send? Multiple options in my opinion:
1. Account created in [store view]?
2. Active [store view]?
3. Other?
Please let me know, thanks!
As per the query, for logged-in users, the mails will be sent from the Active store view. For further queries regarding the same, you can mail us at support@webkul.com
Thanks & Regards,
Webkul Team
This option is not available yet but if you want this then it can be done through the customization. Please share your complete requirements at support@webkul.com so that we can assist you accordingly.
Thanks!
Ex.
Product1 set to notify when stock drops below 5
Product2 set to notify when stock drops below 1
You can’t set the different threshold numbers for different products. But if you want this feature then it can be done through customization. For more information please share your complete requirements at support@webkul.com so that we can assist you accordingly.
Thanks!
Yes, it supports multi-website feature.
Thanks