Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Commerce Stock Notifications

Security covered Under active development 580 sites

Part of the Commerce ecosystem · 487 projects

This module allows customers to sign up for email notifications when out-of-stock products are back in stock. Users can subscribe on the product page and receive an email alert when the item becomes available again. Administrators can manage notification settings and unsubscribe users if needed.

Commerce Stock Notifications will modify the add to cart form on out of stock products, allowing users to enter an email address to be notified when the product is back in stock.

Drupal 8+

Although the 8.x version works very similarly to 7.x it has some newer features.

Installing the module is straightforward. All messages are configurable via an admin form located at /admin/commerce/config/stock/stock-notifications.

In the 7.x version if you accidentally provided a wrong e-mail address you had no way of unsubscribing without editing the database. Version 8.x uses Entity API and as such it was much easier to implement and you can unsubscribe by visiting /user/%user/stock_notifications and clicking the unsubscribe link.

As an administrator you're allowed to unsubscribe anyone. Visit /admin/structure/commerce_stock_notification and fetch the unsubscribe link that you need.

Anonymous users can subscribe, but cannot unsubscribe (that is possible only manually using the module's administration).

Drupal 7

Currently there are, to my knowledge, two other sandbox projects that perform similar functions. They are

Commerce Waitlist (https://drupal.org/sandbox/itamar/1772176)
Commerce Stock Notify (https://drupal.org/sandbox/Rajeevkr/2047369)

For the use case I wrote this module for, the Waitlist sandbox would not work as it required users to be logged in, offering no support for anonymous users. It also had a dependency on flags and I was hoping to minimize dependencies.

The Commerce Stock Notify sandbox was the closest to what I needed but it had been silent for about 8 months. Upon looking at the code I found that much of it was very site specific and I wanted to make something that was generic and could be plugged in on any Commerce site. I do want to give a big thanks to Rajeevkr though for the work he did, I used some of it as the starting blocks for this new project.'

This module should be pretty straightforward to install and administer. All of the text used on the notification form are editable on the admin page ( /admin/commerce/config/stock/stock-notifications ) and the email that is sent is controlled by a Rules component called 'Send Commerce Stock Notifications'.

Important information

7.x-1.x branch supports Drupal 7. No new features will be added. Drupal 7 will reach end of support on January 5th, 2025. After January 5th and until such time as Drupal.org (D.O.) processes mark the branch as unsupported, there will be no further development except for critical bugs (or similar). After the D.O. update the 7.x-1.x series will be fully unsupported.

Ask your assistant about Commerce Stock Notifications

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
May 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
8.x-1.0-beta3 Pre-release 8–11 Dec 1, 2024
8.x-1.0-beta2 Pre-release 8–11 Nov 30, 2024
8.x-1.0-beta1 Pre-release 8–10 PHP 7.0 May 31, 2024