Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

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.

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
2
Tracked since
Nov 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.0-beta3 Pre-release Dec 1, 2024
8.x-1.0-beta2 Pre-release Nov 30, 2024