Supports Spree >= 0.9.x
Original code by Michael Lang Adapted for new calculators by Marcin Raczkowski.
old version that works with 0.8 code can be found at http://github.com/mwlang/spree-price-bucket-shipping-calculator/tree/master
The Price Bucket Shipping Rate Calculator allows you to define shipping costs based on the order's sub-total and shipping method.
When installed, a new "Price Bucket Shipping Rates" link is added to the Configuration area in the Spree administration interface. There after creating named PriceBucket calculator you can define as many different rates as required, and link them to the relevant Calculator.
Each PriceBucketShippingRate contains the following values:
-
Calculator: Each PriceBucketShippingRate is associated with a Calculator, which is used to calculate charges.
-
Price Floor: This is the lower end of the price range for defining the "price bucket". The value is inclusive.
-
Price Ceiling: This is the upper end of the price range for defining the "price bucket" The value is inclusive.
-
Shipping Rate: Is the shipping charge to apply to the order for order's whose sub-totals fall within this price bucket.
-
Install extension:
script/extension install git://github.com/swistak/spree-price-bucket-shipping-calculator.git
-
Migrate the database (or bootstrap if you want the sample data for testing)
rake db:migrate