Out Of Stock Notification for Magento 2 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 the extension workflow:
- 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
- Note: To use the module following configuration should be enabled.
Stores -> Configuration -> CATALOG -> Inventory -> Stock Options -> Display Out of Stock Products -> Yes
Install Extension from Webkul Store
#1 Download Module
Firstly, you need to log in to 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.
#2 Upload Folder
Customers will get a zip folder then they have to extract the contents of this zip folder on their system. The extracted folder has an src folder, inside the src folder you have the app folder. You need to transfer this app folder into the Adobe Commerce root directory on the server as shown below.
Magento 2 Company ? Read More
After the successful installation, you have to run these commands in the Adobe Commerce Cloud root directory.
Third Command – php bin/magento setup:static-content:deploy
After running the commands, you have to flush the cache from Adobe Commerce admin panel by navigating through->System->Cache management as shown below.
Install Extension from Adobe Commerce Cloud Marketplace
If you have purchased this 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 this 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
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.
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).
First of all the admin has to navigate to Stores->Configuration->Webkul->Out Of Stock Notification. Then, four sections will appear:
Enable Out of Stock Notifications
Enable Module on Frontend
The admin can enable or disable the module on the front end.
On 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.
In Admin Email id field, the admin has to set an email id from which all the notification emails will be sent to the users.
In this field, the admin has to enter his name.
3. Low Stock Notification Settings
Low stock notification is used to send out 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 low stock notification has been enabled by admin then the users will receive the notifications whenever a product gets low in stock.
Low Stock Quantity
The admin has to set the quantity of low stock notification.
Select Low Stock Notification Template
In this field, the admin has to select an email template for low stock notification.
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 product in Stock Notification template(The Default one).
The MSI Feature: For Stock Management
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, United States), 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 a 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 the Sources.
The admin will have to click on the Assign Sources tab under 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, on creating a new stock, the main website must be chosen as shown in the image below.
Frontend – Out Of Stock Notification
If the admin has enabled the module on frontend from the admin panel then the guest user has to enter his/her email id 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.
If the admin has disabled the module on frontend from the admin panel then the guest user will not be able to enter the email id for receiving the notification.
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, they can also change the email id if they want and after that, they can click on ‘Notify Me‘ to receive notification when the product gets back in stock.
After entering email id 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:
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 which 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.
When the product gets back in stock, the customers will receive a notification email on their registered email id.
Backend – MANAGING NOTIFICATION REQUESTS
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 can see there My Out Of Stock product here and the status that is still pending or Notified and can also perform action 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.0
Supported Framework Version - Magento 2.0.x, 2.1.x, 2.2.x,2.3.x, 2.4.x