Skip to content
solidus and shipwire connect manager
Ruby HTML Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
config
db/migrate
lib
script
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
Versionfile
solidus_shipwire.gemspec

README.md

SolidusShipwire

CircleCI

solidus and shipwire connect manager.

Installation

Add this line to your application's Gemfile:

gem 'solidus_shipwire'

Run the bundle command:

bundle install

After that's done, you can install and run the necessary migrations, then seed the database:

bundle exec rake solidus_shipwire:install:migrations
bundle exec rake db:migrate

Configuration

Basic configuration

# config/initializers/spree.rb
Spree::ShipwireConfig.configure do |config|
  config.username = "<%= ENV['SHIPWIRE_USERNAME'] %>"
  config.password = "<%= ENV['SHIPWIRE_PASSWORD'] %>"
end

Sync shipwire

Sync all variants to shipwire

bundle exec rake solidus_shipwire:sync_variants

If you already have your variants in shipwire, you can create variants with same sku on solidus and run:

bundle exec rake solidus_shipwire:link_shipwire_product

Example

The orders are put in shipwire when they become in a complete state

Testing

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

To record new cassettes you have to use a shipwire beta environment. Put your credentials in spec/support/shipwire.rb . Don't forget to remove them before commit. Don't care about the security because they are filter ( spec/support/tools.rb) .

Copyright (c) 2016 [Daniele Palombo], released under the New BSD License

You can’t perform that action at this time.