Add-on for stock notifications

Are there sample code, a framework or a Litium add-on to simplify the creation of a “stock notification”-service? This would be used for creating an end-user feature on the product catalog detail page; “Send me an e-mail when the product is back in stock”.

Litium version: 6.1

No samples avaliable that I know of to notify on stock/inventory changes, but you could just

  1. Store monitored articlenumbers on the customer and optionally also keep a list in cache of all items monitored.
  2. Add a listener to the event Products.Events.VariantInventoryItemUpdated. (or optionally create a scheduled task that checks monitored items on regular interval)
  3. If stock > 0 for a monitored item just send a mail and remove as monitored from customer.
2 Likes