Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 1.32 KB

README.md

File metadata and controls

68 lines (50 loc) · 1.32 KB

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