=== Merchant Center Reviews for Woocommerce ===
Contributors: brumisphere
Tags: woocommerce, google reviews, merchant center, reviews, customer reviews
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 1.0.8
Requires Plugins: woocommerce
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Merchant Center Reviews for WooCommerce automates the process of requesting reviews via Google Merchant Center, helping you collect valuable feedback.

== Description ==

**Merchant Center Reviews for WooCommerce** allows you to automate the process of collecting customer reviews directly from Google. By integrating the Google Customer Reviews opt-in form at checkout, it encourages customers to leave feedback about their experience with your store.

With this plugin, you can easily configure and customize the Google review opt-in process. The plugin includes support for Google Tag Manager events, estimated delivery dates, and product-specific GTIN handling to make your review process as smooth as possible.

### ✨ **Key Features:**
- **Seamless Integration**: Automatically request reviews after customers place an order.
- **Customizable Opt-in**: Choose from different opt-in styles (dialog, bottom tray, etc.).
- **Estimated Delivery**: Set the number of days for estimated delivery for review requests.
- **GTIN (Global Trade Item Number) Support**: Use existing GTINs from product metadata.
- **Google Tag Manager**: Track review opt-in events using Google Tag Manager (GTM).
- **Merchant Badge**: Display the Google Customer Reviews badge on your site with multiple position options (bottom-left, bottom-right, inline, etc.).
- **Multi-Language Support**: Automatically adapts to the site's language.
- **Simple Setup**: Configure everything in **WooCommerce → Settings → Google Merchant Center Reviews**.

== Installation ==

1. **Upload the plugin**: Upload the plugin files to the `/wp-content/plugins/` directory.
2. **Activate the plugin**: Go to the 'Plugins' menu in WordPress and activate the **Merchant Center Reviews for WooCommerce** plugin.
3. **Configure Settings**: Head to **WooCommerce > Settings > Google Merchant Center Reviews** to set up the Google Merchant Center ID, customize opt-in styles, configure GTM tracking, and more.
4. **Enable Reviews**: Activate the review feature in your [Google Merchant Center](https://support.google.com/merchants/answer/14628991) account.

Once active, the Google Customer Reviews opt-in will be displayed automatically on the WooCommerce checkout page.

== Frequently Asked Questions ==

= What is required to use this plugin? =
- WooCommerce must be installed and active.
- A Google Merchant Center account is required. You can sign up for one [here](https://www.google.com/retail/solutions/merchant-center/).

= How do I find my Google Merchant Center ID? =
You can find your Merchant Center ID by logging into your Google Merchant Center account and navigating to **Settings → Account Settings**.

= Does this plugin support Google Tag Manager (GTM) tracking? =
Yes! You can enable GTM tracking from the plugin settings. Once enabled, it will track review opt-in events on the order confirmation page.

= Can I customize the opt-in style? =
Yes, you can choose from several opt-in styles, including **Center Dialog**, **Bottom Tray**, **Bottom-Right Dialog**, and more. You can configure this from the settings page.

= Can I display the Google Merchant Center Badge on my site? =
Yes! You can display the badge on your site, customize its position (bottom-left, bottom-right, or inline), or disable it entirely.

== Screenshots ==

1. **Settings Page** – Configure optin requests, and GTM tracking.
2. **Google Customer Reviews Opt-in** – Automatically display an opt-in on your WooCommerce checkout page.

== Changelog ==

= 1.0.8 - 2025-03-20 =
* **Enhancement**: Adding script placement (header / footer) option in settings.

= 1.0.8 - 2025-03-20 =
* **Enhancement**: Adding delay and retry for script loading.

= 1.0.6 - 2025-03-18 =
* **Fix**: saving Google Merchant ID option fixed.
* **Enhancement**: Adding debug mode option in settings.

= 1.0.5 - 2025-03-12 =
* **Compliance**: tested up to WP 5.7, added banner, icon and screenshots.

= 1.0.4 - 2025-03-12 =
* **Enhancement**: GTIN matching improved ; now automatically set.

= 1.0.3 - 2025-03-06 =
* **Enhancement**: All inline styles moved to an external `style.css` file.
* **Enhancement**: All inline scripts moved to a external `.js` files.
* **Enhancement**: Updated README with clearer features list and instructions.

= 1.0.2 - 2025-03-05 =
* **Improvement**: Converted inline scripts and styles to use `wp_enqueue_script()` and `wp_enqueue_style()`.
* **Fix**: Prefixed all functions and classes with `brumigmcreview_` for unique namespace compliance.
* **New**: Introduced external service documentation for Google Merchant Center API.
* **Enhancement**: Improved admin settings page with help tabs and better UX.
* **Debugging**: Added enhanced logging and reporting to track review opt-in displays.

= 1.0.1 - 2024-11-06 =
* **Improvement**: Added option to customize the Merchant Center badge position.
* **Fix**: GTIN prefix and suffix logic improved.
* **New**: Added option to generate GTIN from SKU, prefix, and suffix.

= 1.0.0 - 2024-10-15 =
* Initial release with the following features:
  - Google Merchant Center Reviews opt-in on WooCommerce checkout.
  - Customizable opt-in styles and delivery date settings.
  - Support for GTIN options (default, SKU-based, and no-product reviews).
  - Google Tag Manager tracking for opt-in events.
  - Display the Google Merchant Center badge with customization options.

== Upgrade Notice ==

= 1.0.3 =
This update moves inline styles into a separate stylesheet and clarifies the plugin’s key features in the readme. It’s recommended for best practices and improved readability.

== External Services ==

This plugin connects to Google Merchant Center to facilitate Customer Reviews. It loads Google’s platform script on the WooCommerce Thank You page to allow customers to opt-in for review requests.

- **Service Used**: Google Merchant Center Reviews  
- **Data Sent**: Merchant Center ID, Order ID, Customer Email (hashed), Country, Estimated Delivery Date, Purchased Item SKUs  
- **Purpose**: Enables Google to send review invitations after a completed order.  
- **Terms of Service**: [Google Terms](https://policies.google.com/terms)  
- **Privacy Policy**: [Google Privacy](https://policies.google.com/privacy)

