Skip to content

A weight based service (like Post in Europe), for spree. (spree calculator)

License

Notifications You must be signed in to change notification settings

thelastagency/spree-postal-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpreePostalService

A postal service is delivers based on weight only(*). Like most post services in europe will.

This spree extension adds a spree-calculator to model this.

Other features:

  • size and weight restrictions can be specified
  • you specify a weight/price table
  • handling fee may be added ( with a maximum when it won't be applied anymore)
  • multi-parcel shipments are automatically created

Off course this relies on your weight data to be correct (and if you want the restrictions to work, the size data too). Use the same measurements as in the product info page.

(*) you may instal several ShippingMethods for (usually) different countries.

Usage

Add to your gemfile

gem "spree_postal_service", :git => "[email protected]:dancinglightning/spree-postal-service.git"

Go to admin interface

http://localhost:3000/admin/shipping_methods/new

and use "Postal"

as calculator.

The size/weight "table" must have the same amount of (space separated) entries.

Optionally add your own locale to config/locales/ (and if you do, send it to me)

Example:

With the default settings (measurements in kg and cm):

  • Max weight of one item: 18
  • Max width of one item: 60
  • Max length of one item: 90
  • Default weight: 1kg (applies when product weight is 0)
  • Handling fee: 10
  • Amount, over which handling fee won't be applied: 50
  • Minimum total of the order: 10.0
  • Weights (space seperated): 1 2 5 10 20
  • Prices (space seperated): 6 9 12 15 18

Applies?

The Shipping method does not apply to the order if:

  • The order total is under 10 Euroes
  • Any items weighs more than 18 Kg
  • Any item is longer than 90 cm
  • Any items second longest side (width) is over 60cm. Eg a 70x70x20 item.

Costs

  • items weighing 10 kg of worth 100 Euros will cost 15 Euros
  • items weighing 10 kg of worth 40 Euros will cost 25 Euros (15 + 10 handling)
  • items weighing less than 1 kg of worth 60 Euros will cost 6 Euros
  • items weighing less than 1 kg of worth 40 Euros will cost 16 Euros (6 + 10)
  • items weighing 25 kg of worth 200 Euros will cost 30 Euros (2 packages, 18 + 12 euro)
  • 3 items without weight inforamtion of worth 100 euros will cost 12 Euro

Copyright (c) 2011 [name of extension creator], released under the New BSD License

About

A weight based service (like Post in Europe), for spree. (spree calculator)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%