=== Asperor Merchand Feed ===
Contributors: radilov
Tags: woocommerce, google merchant center, product feed, polylang, multilingual
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generates valid Google Merchant Center product feeds, one per Polylang language, from your live WooCommerce catalog.

== Description ==

Asperor Merchand Feed generates on-the-fly TSV product feeds for Google Merchant Center, one per language configured in Polylang. Each feed is exposed as a public REST endpoint so it can be registered in Merchant Center as a "Scheduled fetch" primary data source.

This plugin was built to replace Google for WooCommerce (GLA) as a Merchant Center data source, because GLA tags product language using the WordPress admin locale instead of each product's real Polylang language when syncing in the background, which mislabels the catalog language in Merchant Center. Asperor Merchand Feed reads the actual Polylang language of each product instead.

= Features =

* One TSV feed per language: `en`, `de`, `es`, `fr`, `it`.
* Public REST endpoint: `/wp-json/b2b-merchant-feed/v1/feed/{lang}`.
* Reads price, stock and identifiers from the correct product or variation (supports catalogs mixing simple and variable products).
* Automatic Google product category guess based on multilingual keywords in the product title.
* Admin screen ("Merchant Feed") listing all feed URLs, live product counts per language and suggested target countries.
* Fully translatable (English source strings, Spanish translation included).

= Requirements =

* WooCommerce
* Polylang

= License =

This is a paid plugin: €45/year, one-time payment, no auto-renewal. Buy a license at [asperor.com](https://asperor.com/store/). The license only gates the plugin's admin screen — the feed URLs stay publicly reachable at all times so Google can keep fetching them on schedule.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install the zip file through Plugins → Add New → Upload Plugin.
2. Activate the plugin and activate your license key under WooCommerce → Merchant Feed.
3. Go to WooCommerce → Merchant Feed to see the feed URL for each language.
4. In Google Merchant Center, go to Products & store → Data sources → Add primary source → Scheduled fetch, and paste the URL for each language you want to target.

== Frequently Asked Questions ==

= Does this replace Google for WooCommerce entirely? =

No, it only replaces it as the *data source* for the product feed. You can keep Google for WooCommerce installed for shipping settings or Google Ads integration, just disable its own product sync so it doesn't compete with these feeds.

= Which languages are supported? =

The 5 languages hardcoded in the plugin: English, German, Spanish, French and Italian, matched against Polylang's `language` taxonomy.

== Changelog ==

= 1.1.0 =
* Added paid license activation (EDD-compatible) against the unified Asperor store.

= 1.0.0 =
* Initial release.
