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:

  1. Your ERP or another third-party system decides on how shipments are generated anyway.
  2. You are using another extension like spree_handling_fee that generates order adjustments based on each stock location.
  3. 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 exec rails g spree_summary_stock:install


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.

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 'spree_summary_stock/factories'

Copyright (c) 2015 Daniel Dixon, released under the New BSD License


No comments yet

Please login to add comment.