SpreeCorreiosShipping
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.
Installation
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
Configuring
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.
To-Do
- Write tests
- Write docs
- Implement package calculation
Testing
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