Back In Stock Plugin

Back In Stock Plugin

Keep your customers in the loop for when a sold-out product gets replenished and generate more revenue by adding potential future sales!

npm install @callit-today/vendure-plugin-back-in-stock
Latest version2.0.2
Compatibility
Last publishedJun 19, 2023
Vendure Community

Back-In-Stock Vendure Plugin

Vendure version

Keep your customers in the loop for when a sold-out product gets replenished and generate more revenue by adding potential future sales!

yarn add @callit-today/vendure-plugin-back-in-stock

yarn add -D @vendure/ui-devkit


  Add the plugin, email handler and AdminUI extensions to plugins in vendure-config.ts


  Create a template file for the Back-In-Stock email in static/email/templates/back-in-stock/body.hbs

 

How it works

For any product that is out of stock, customers can signup to be notified via email when the product is back in stock. When a product is replenished, the plugin gets active subscriptions for it and sends email notifications.

Disable email notifications by setting enableEmail to false in plugin init
For limiting notifications sent to the amount of saleable stock set limitEmailToStock to true

 

Next steps

Implement frontend functionality. Refer to back-in-stock branch on storefront-qwik-starter

 

Todo

:white_check_mark: Customizable options for disabling email notifications and sending emails to the amount of saleable stock

:white_check_mark: Ability to send email notifications manually from the Admin UI

:soon: Dashboard with metrics and tracking conversions


 

License

MIT

Development

Run yarn start to start Vendure on http://localhost:3050/admin

Generate graphql types

  1. Start the dev-server with yarn start
  2. In another terminal window, run yarn generate