Add user notifications for products out of stock, automatically sends an email when the product is back on stock
Add solidus_stock_notifier to your Gemfile:
gem 'solidus_stock_notifier'
Bundle your dependencies and run the installation generator:
bundle
bundle exec rails g solidus_stock_notifier:install
If you want active/deactive
the configuration, you can add the following to an initializer:
SolidusStockNotifier::Config.tap do |config|
config.automatically_send_notification = false
end
First bundle your dependencies, then run rake
. rake
will default to building the dummy app if it does not exist, then it will run specs, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app
.
bundle
bundle exec rake
When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:
require 'solidus_stock_notifier/factories'
Copyright (c) 2019 [name of extension creator], released under the New BSD License