Spree Weight Based Shipping Calculator
Determine shipping cost based on total items' weight. The minimum weight is always zero and maximum weight is always
infinite. You can specify any number of weights between the minimum and maximum, and each weight, including zero weight, will have a corresponding
shipping cost. The shipping cost of an order is determined by comparing the list of shipping weight against the order's
weight - First, find the lowest shipping weight in the list that is greater than or equal to the order weight, its corresponding shipping
cost is the shipping cost of the order. For example, here is the list of weights and its shipping cost configuration:
Weight(lb) Shipping Cost 0.0 $5.0 5.0 $10.0 20.0 $15.0
and here is the shipping cost for the following orders:
Order weight(lb) Shipping Cost
Note: Currently, UI for Admin is not provided in this gem.
Add spree_weight_based_shipping_calculator to your Gemfile:
Bundle your dependencies and run the installation generator:
bundle rake spree_weight_based_shipping_calculator:install:migrations rake db:migrate
Be sure to bundle your dependencies and then create a dummy test app for the specs to run against.
bundle bundle exec rake test_app bundle exec rspec spec
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) 2014 [name of extension creator], released under the New BSD License