bellmyer / spree-active-shipping forked from railsdog/spree-active-shipping

Spree extension for providing shipping methods that wrap the active_shipping plugin. This forked version fixes a rounding error and adds the option of a global handling fee.

This URL has Read+Write access

name age message
file README.markdown Wed Oct 07 14:50:04 -0700 2009 modified README for clarity [bellmyer]
file Rakefile Thu Oct 23 12:50:56 -0700 2008 First commit. [schof]
file active_shipping_extension.rb Loading commit data...
directory app/
directory config/ Wed Jan 28 05:31:31 -0800 2009 Upgraded to support Spree 0.6.0 [schof]
directory lib/
directory spec/ Tue Oct 28 07:51:44 -0700 2008 Added several working UPS calculators. [schof]
directory vendor/ Mon Aug 31 11:38:25 -0700 2009 Updated to latest version of plugin. [schof]
README.markdown

Active Shipping

This is a Spree extension that wraps the popular active_shipping plugin.

UPS

You will need a UPS developer account to get rate quotes (even in development and test mode.) The UPS calculators also require that you set the following configuration properties.

Spree::ActiveShipping::Config[:origin_country]
Spree::ActiveShipping::Config[:origin_city]
Spree::ActiveShipping::Config[:origin_state]
Spree::ActiveShipping::Config[:origin_zip]
Spree::ActiveShipping::Config[:ups_login]
Spree::ActiveShipping::Config[:ups_password]
Spree::ActiveShipping::Config[:ups_key]

It will soon be possible to set these properties through a new admin configuration screen (even sooner if someone else writes the patch!)

Global Handling Fee

Spree::ActiveShipping::Config[:handling_fee]

This property allows you to set a global handling fee that will be added to all calculated shipping rates. Specify the number of cents, not dollars.

Using Migrations

If you'd like to set your shipping configuration as part of a migration you could add something like this to your site extension.

class AddUpsConfiguration < ActiveRecord::Migration
  def self.up
    Spree::ActiveShipping::Config.set(:ups_login => "dpbrowning")
    Spree::ActiveShipping::Config.set(:ups_password => "doublewide")
    Spree::ActiveShipping::Config.set(:ups_key => "5B8DDE509EFDA5D6")
  end

  def self.down
  end
end