Skip to content

umeshravani/spree_google_merchant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installation

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

    gem 'spree_google_merchant_feed', git: 'https://github.com/umeshravani/spree_google_merchant'
  2. Install the migrations:

    bundle exec rails g spree_google_merchant_feed:install
  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.

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.

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.

About

Generate and manage product feeds for Google Merchant Center directly from your Spree Commerce store. This extension automates the creation of XML feeds compliant with Google Shopping specifications, helping merchants boost visibility and drive traffic to their products.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages