bellmyer / spree-active-shipping forked from railsdog/spree-active-shipping
- Source
- Commits
- Network (7)
- Downloads (1)
- Wiki (1)
- Graphs
-
Tree:
c27d56b
| name | age | message | |
|---|---|---|---|
| |
README.markdown | Wed Oct 07 14:50:04 -0700 2009 | |
| |
Rakefile | Thu Oct 23 12:50:56 -0700 2008 | |
| |
active_shipping_extension.rb | ||
| |
app/ | ||
| |
config/ | Wed Jan 28 05:31:31 -0800 2009 | |
| |
lib/ | ||
| |
spec/ | Tue Oct 28 07:51:44 -0700 2008 | |
| |
vendor/ | Mon Aug 31 11:38:25 -0700 2009 |
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

