<p>I made a plugin to do this thanks to Jeremy's above answer. It's my first Craft plugin BTW.</p>

<p><a href="https://github.com/n-dw/inStockNotifier-Craft" rel="nofollow noreferrer">https://github.com/n-dw/inStockNotifier-Craft</a></p>

CC BY-SA 3.0
2017-07-21T15:01:22.030Z
2017-07-21T15:01:22.030Z
NdW
<p>This is not currently possible out of the box with Commerce at time of writing (Sept 2016).</p>

<p>You could write a custom plugin to do it, which would basically keep a table of these people-to-contact, and run a task (or use a controller you trigger by cronjob) -> to send out the emails at such a time the product is re-stocked.  </p>

<p>It wouldn't be spectacularly difficult to implement.  Here's a rough sketch:</p>

<p>A form on the site to accept the email addresses -> that form posts to a controller in your plugin - which stores a record of the product, customer email, and date emailed (date emailed is initially null).  </p>

<p>You then have a task that periodically runs and checks these records - for each record, if there is no date emailed, check the stock of the product - if greater than zero, send an email and log when it was sent.</p>

CC BY-SA 3.0
2016-09-14T09:46:00.370Z
Is this a job you'd be willing to take on?
Stian Karlsen
CC BY-SA 3.0
2016-09-14T10:32:40.097Z
In case I wasn't clear and you think I'm a bit entitled, I was suggested that we pay you, of course. Thanks!
Stian Karlsen
CC BY-SA 3.0
2016-09-14T10:34:06.720Z
Hi Stian - yep no worries, I understood.  In all honesty, I can't right now - a bit too busy with other things of my own I'm afraid!  I'd be happy to help out in Slack if you're giving it a go - otherwise the slack #jobs channel should find you someone.
Jeremy Daalder
CC BY-SA 3.0
2016-09-13T02:14:29.930Z
2016-09-13T02:55:49.213Z
2016-09-13T02:55:49.213Z
Jeremy Daalder
<p>Is it possible to let customers enter their email on individual product pages if the stock is 0, and then automatically send them an email when the stock goes above 0 again?</p>

<plugin-craftcommerce>
Notify users when item is back in stock
# Notify users when item is back in stock

(Asked by: username_0 on 2016-09-12)

Is it possible to let customers enter their email on individual product pages if the stock is 0, and then automatically send them an email when the stock goes above 0 again?

**Tags:** plugin-craftcommerce


---

## 2 answers

### Answer by username_2 on 2016-09-13. Score: 5 | Accepted answer

This is not currently possible out of the box with Commerce at time of writing (Sept 2016).

You could write a custom plugin to do it, which would basically keep a table of these people-to-contact, and run a task (or use a controller you trigger by cronjob) -> to send out the emails at such a time the product is re-stocked.

It wouldn't be spectacularly difficult to implement. Here's a rough sketch:

A form on the site to accept the email addresses -> that form posts to a controller in your plugin - which stores a record of the product, customer email, and date emailed (date emailed is initially null).

You then have a task that periodically runs and checks these records - for each record, if there is no date emailed, check the stock of the product - if greater than zero, send an email and log when it was sent.

> **Comments:**
> **username_0**: Is this a job you'd be willing to take on?  
> **username_0**: In case I wasn't clear and you think I'm a bit entitled, I was suggested that we pay you, of course. Thanks!  
> **username_2**: Hi Stian - yep no worries, I understood.  In all honesty, I can't right now - a bit too busy with other things of my own I'm afraid!  I'd be happy to help out in Slack if you're giving it a go - otherwise the slack #jobs channel should find you someone.  

---

### Answer by username_1 on 2017-07-21. Score: 2

I made a plugin to do this thanks to Jeremy's above answer. It's my first Craft plugin BTW.

<https://github.com/n-dw/inStockNotifier-Craft>


---

