A Spree extension that summarizes all Spree::StockLocation into one location

Last updated on: August 04 at 04:26 PM

source code bug tracker
2 2 0
owner:  onedanshow


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

compatible spree versions
tags spree versions
master ~> 2.4.2
Daniel Dixon