A Spree extension that summarizes all Spree::StockLocation into one location. This lets Spree receive updates for multiple stock locations, but only generate shipments for one. This is useful if:
- Your ERP or another third-party system decides on how shipments are generated anyway.
- You are using another extension like spree_handling_fee that generates order adjustments based on each stock location.
- You have a custom checkout page that does not have UI for split shipments.
Add spree_summary_stock to your Gemfile:
gem 'spree_summary_stock', github: 'onedanshow/spree_summary_stock'
Bundle your dependencies and run the installation generator:
bundle bundle exec rails g spree_summary_stock:install
First bundle your dependencies, then run
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
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:
Copyright (c) 2015 Daniel Dixon, released under the New BSD License