This is a gem to allow use Correios service for shipping methods in spree Currently just tested and working with spree > 3.1
There is a 1.2 spree implementation, just use 1-2-stable branch.
-
Add the following to your Gemfile
gem 'spree_correios_shipping'
-
Run
bundle install
-
To copy and apply migrations run:
rails g spree_correios_shipping:install
You will need setup some confs in your app
-
Go to settings and add preferences of settings to Correios.
-
You need to add addresses to every stock location you create/have.
-
Add a shipping method and select the apropriated delivery method.
- Write tests
- Write docs
- Implement package calculation
Currently there are no tests!!
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
Copyright (c) 2012-2015 Locomotiva.pro, released under the New BSD License