Stock Monitoring

Stock Monitoring

Monitor stock levels in your dashboard and get notified when products are almost out of stock

npm install @pinelab/vendure-plugin-stock-monitoring
Latest version1.5.0
Compatibility>=2.2.0
Last publishedDec 20, 2024
Pinelab
PinelabWebshops for mission-driven brands and wholesalers

Official documentation here

This plugin helps you monitor the stock levels in two ways:

  1. A dashboard widget that displays variants who's stocklevel is below a given threshold
  2. An email handler that sends an email when stocklevels of a variant dropped below a given threshold

Getting started

  1. Add the plugin to your vendure-config.ts to expose a productVariantsWithLowStock query in the admin API.

For more configuration options regarding the admin ui, check the docs.

When you start the server and login, you can find stock-levels under the add widgets button.

Low stock email handler

The email handler will send an email when the stocklevel of a variant drops below the given threshold. To activate the handler, you can add the following handlers to your vendure-config.ts:

Create a template file for the low stock email in static/email/templates/low-stock/body.hbs with the following content: