Simple extension for logging products ran out of stock
Last updated on: July 28 at 08:01 AM
source code bug trackerSimple extension that historically stores when a Product ran out of stock.
Add this extension to your Gemfile with this line:
ruby
gem 'spree_out_of_stock', github: 'rogelio-meza-t/spree_out_of_stock'
Install the gem using Bundler:
ruby
bundle install
Copy & run migrations
ruby
bundle exec rails g spree_out_of_stock:install
Restart your server
If your server was running, restart it so that it can find the assets properly.
Go to the reports section in the admin dashboard.
Select from the displayed list the option Out of Stock
.
Choose a date range of your preference and hit Search
.
The results are displayed as a simple table.
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. The dummy app can be regenerated by using rake test_app
.
cd spec/dummy
bundle
bundle exec rake
Then you can run test as follow
rspec
If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.
Copyright (c) 2017 [name of extension creator], released under the New BSD License
tags | spree versions |
---|---|
master | >= 3.1.0, < 4.0 |