Linux 软件免费装
Banner图

Product Reviews XML for Google Merchant Center

开发者 tetherties
更新时间 2026年11月9日 21:59
捐献地址: 去捐款
PHP版本: 7.2 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce product reviews xml feed google shopping google merchant center

下载

2.0.8 2.0.9 2.1.0

详情介绍:

This plugin generates a strictly formatted XML feed of your product reviews that meets Google Merchant Center requirements. By submitting this feed to Google, you can enable "Product Ratings" (stars) on your Google Shopping PLAs (Product Listing Ads). Key Features:

安装:

  1. Upload the plugin files to the /wp-content/plugins/product-reviews-xml-for-google directory.
  2. Activate the plugin through the 'Plugins' screen in WordPress.
  3. Go to Settings > GMC Reviews XML to configure.
  4. Copy the generated Feed URL.
  5. Log in to Google Merchant Center > Analytics > Reviews > Product Reviews > Feeds.
  6. Add a new feed using "Scheduled Fetch" and paste your URL.

升级注意事项:

2.1.0 Reads WooCommerce's built-in GTIN field when no GTIN meta key is set, and lists every variation's identifiers on reviews of variable products. No settings changes needed. The feed cache clears when you save settings, or use Clear Cache after updating. 2.0.9 Confirmed compatible with WordPress 7.0. 2.0.6 Increased default review limit to 2,500 for better free tier support. 2.0.7
  • Security hardening: Added strict escaping and sanitization.
  • Updated code structure with unique prefixes to prevent conflicts.
  • Moved inline JavaScript to external assets file.

常见问题:

Which review plugins are supported?

We natively support:

  1. WooCommerce Standard Reviews
  2. Customer Reviews for WooCommerce (CusRev)
  3. YITH WooCommerce Advanced Reviews
  4. Site Reviews
  5. Judge.me / Yotpo (Only if "Sync to WooCommerce" is enabled in their settings).

Where do I enter a GTIN for my products?

On WooCommerce 9.2 and later, edit a product and open the Inventory tab. The "GTIN, UPC, EAN, or ISBN" field is read automatically. On older versions, or if you store GTINs in a custom field, enter that meta key in the plugin settings.

Why does Merchant Center say my reviews have a missing or invalid product ID?

Google matches each review to a product in your product feed using a GTIN, or a brand plus an MPN. A review that carries neither cannot be matched, and the whole feed shows errors. Check three things:

  1. Open your feed URL and look inside one review's <product_ids> block. You should see <gtins> or <mpns>, plus <brands>.
  2. Compare those values with the same product in your Merchant Center product feed (Products, then the product). The GTIN or the MPN has to be identical.
  3. Set the GTIN Key and MPN Key in the plugin settings to the fields that hold those values in your store.

My products have variations. What does the plugin send?

Google's product feed usually lists each variation as its own product, with its own ID, SKU and GTIN, while customers review the parent product. From version 2.1.0 the plugin sends the ID, SKU, MPN and GTIN of every variation inside the review for the parent product, so the review matches whichever variation Google lists. The feed is longer as a result; a product with 22 variations adds about 22 entries per list. To turn this off, return false from the prxml_include_variations filter.

What should I enter for GTIN Key and MPN Key?

GTIN Key is the name of the custom field that holds the GTIN. WooCommerce 9.2 and later has a built-in GTIN field that the plugin reads when this key is empty. Many GTIN plugins store the value under their own key, and variations often use a different key from simple products. To find yours, take one GTIN from your Merchant Center product feed and search the wp_postmeta table for it: SELECT post_id, meta_key FROM wp_postmeta WHERE meta_value = 'YOUR-GTIN';. The meta_key in the result is the value to enter. One example is hwp_var_gtin, which one GTIN plugin uses on variations. MPN Key works the same way. If your product feed uses the SKU as the MPN, enter _sku. Variations with no value under that key fall back to their own SKU. Brand Key is the name of a product attribute or custom field. If it is empty or the field has no value, the plugin sends your site name as the brand.

I changed a setting but the feed looks the same.

The plugin stores the generated feed and refreshes it weekly or daily, depending on your setting. Changing the provider, GTIN Key, MPN Key or Brand Key clears that stored copy. If you changed anything else, such as reviews, product data or the plugin files, click "Clear Feed Cache Now" on the settings page. Hosts and CDNs can also keep their own copy of the page: on WP Engine, clear all caches in the User Portal, and on Cloudflare purge the feed URL. Add a throwaway query string such as ?x=1 to the feed URL to bypass your browser's copy while testing. Then use "Fetch now" on the feed in Merchant Center.

Merchant Center rejects some reviews for containing a URL.

Google refuses reviews whose text contains a web address, including bare domains such as example.com. Edit the review in WooCommerce under Products, Reviews, remove the address, and clear the feed cache. Merchant Center's "View examples" link on the error lists the affected reviews.

Some reviews are for products that are not in my Merchant Center product feed.

A review can only show stars on a product Google already has. Reviews on products that are not in your product feed, such as a sample package or a custom order page, will keep showing errors. They do not stop the other reviews from being used.

My feed is showing a 404 error?

Go to the plugin settings and click "Save Changes". This will flush your permalinks and fix the URL.

更新日志:

2.1.0 2.0.9 2.0.8 2.0.6 2.0.5 2.0.4 2.0.3 2.0.0 1.0.0