No release in over 3 years
Adds the ability to provide products listings to Google Merchant Center for Spree Commerce.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

Runtime

 Project Readme

SpreeGoogleMerchantFeed

This is a Google Merchant extension for Spree Commerce, an open source e-commerce platform built with Ruby on Rails. Adds the ability to provide products listings to Google Merchant Center for Spree Commerce.

Gem Version

Installation

  1. Add this extension to your Gemfile with this line:

    bundle add spree_google_merchant_feed
  2. Install the migrations:

    bundle exec rake railties:install:migrations FROM=spree_google_merchant_feed
  3. Run the migrations:

    bundle exec rails db:migrate
  4. Restart your server

If your server was running, restart it so that it can find the assets properly.

Developing

  1. Create a dummy app

    bundle update
    bundle exec rake test_app
  2. Add your new code

  3. Run tests

    bundle exec rspec

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_google_merchant_feed/factories'

Releasing a new version

bundle exec gem bump -p -t
bundle exec gem release

For more options please see gem-release README

Contributing

If you'd like to contribute, please take a look at the instructions for installing dependencies and crafting a good pull request.

Copyright (c) 2025 OlympusOne, released under the MIT

Google Merchant Center Integration

To use your Google Merchant endpoint as a data source in Google Merchant Center:

  1. Deploy your endpoint
    Ensure your authentication and data endpoints are publicly accessible and return the required data format (e.g., XML, CSV, or JSON).
    For this extension, your endpoint will typically be:
    https://yoursite.com/google_merchant/products.xml

  2. Copy your endpoint URL
    This is the URL that Google Merchant Center will fetch data from.

  3. Add as a data feed in Google Merchant Center

    • Go to Google Merchant Center.
    • In the header, click Settings & tools.
    • Select Data sources.
    • Click Add product source.
    • Choose Add products from a file.
    • Enter your endpoint URL (e.g., https://yoursite.com/google_merchant/products.xml) as the feed source.
    • Set fetch frequency and credentials if authentication is required.
  4. Test and verify
    After saving, Google will attempt to fetch your data. Check for errors and ensure your feed is processed correctly.