Export products feeds from Spree to various services
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app
bin
config
db/migrate
doc
lib
spec
.gitignore
.rspec
Gemfile
LICENSE
README.md
Rakefile
spree_feeds.gemspec

README.md

SpreeFeeds

Export products feeds from Spree to:

  • Google (with taxon mapping)
  • Facebook
  • Trovaprezzi
  • Le Guide (aka pagineprezzi)
  • ShopAlike
  • Twenga
  • Eprice (with taxon mapping)
  • Kelkoo
  • Cvetta (search engine)

Installation

Add spree_feeds to your Gemfile:

gem 'spree_feeds', github: 'freego/spree_feeds', branch: 'X-X-stable'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g spree_feeds:install

Usage

SpreeFeeds::Google.new.perform

A sidekiq worker is also included:

FeedsWorker.perform_async('SpreeFeeds::Google', 24)

See SpreeFeeds::Configuration for available configurations:

SpreeFeeds::Config.base_url = 'https://mysite.com/'
SpreeFeeds::Config.mappings = ['google', 'eprice']

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your applications integration with this extension you may use it's factories. Simply add this require statement to your spec_helper:

require 'spree_feeds/factories'

Copyright (c) 2015 freego, released under the New BSD License