=== MentoFeed - Live Product Feed Builder for WooCommerce ===
Contributors: mentotex
Tags: woocommerce, product feed, csv, export, dach
Requires at least: 6.3
Tested up to: 6.9
WC tested up to: 10.7.0
Requires PHP: 8.0
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Live product feed builder for WooCommerce. Design custom CSV/TSV feeds with a drag-and-drop column builder — always fresh, always live.

== Description ==

MentoFeed generates product feeds **live on every request** — no static files, no cron jobs, no stale data. Every time a partner or affiliate network fetches your feed URL, they get the latest products, prices, and stock levels directly from your WooCommerce store.

**Key Features:**

* **Live feed generation** — Fresh data on every request, no caching headaches
* **Visual column builder** — Drag-and-drop interface with 50+ data sources
* **Inline prefix/suffix** — Add currency symbols, units, or other text per column
* **12 data transformers** — Strip HTML, truncate, number format, find & replace, and more
* **Enriched product filters** — Filter by category, tag, stock, price, product type, sale status, image presence, and more
* **CSV and TSV formats** — With configurable separators and UTF-8 BOM for German Excel
* **DACH market ready** — Grundpreis, delivery time, EAN/GTIN, shipping cost fields built in
* **Token-based authentication** — Each feed has its own unique auth token
* **Per-IP rate limiting** — Protect your server from excessive requests
* **Detailed access logs** — Track every feed request with IP, status, timing, and product count
* **Variation handling** — Skip, export parent only, or expand each variation as its own row
* **WooCommerce HPOS compatible** — Works with High-Performance Order Storage

**Built for the DACH Market:**

MentoFeed includes fields specifically useful for German, Austrian, and Swiss e-commerce: Grundpreis (base price), Lieferzeit (delivery time), EAN/GTIN identifiers, and automatic BOM insertion for proper Excel handling with German character sets.

**Use Cases:**

* Google Shopping product feeds
* idealo, billiger.de, Geizhals price comparison
* Amazon, eBay marketplace listings
* AdCell, Awin, TradeDoubler affiliate feeds
* Custom partner data exports

== Installation ==

1. Upload the `mentofeed` folder to `/wp-content/plugins/` or install via WordPress admin
2. Activate the plugin (requires WooCommerce 9.0+)
3. Go to **MentoFeed → Add New** to create your first feed
4. Configure columns, filters, and output settings
5. Copy the feed URL and share it with your partners

== Frequently Asked Questions ==

= Does MentoFeed cache the feed? =

No. MentoFeed generates feeds live on every request. This means your partners always get the most current data. For very large catalogs (10,000+ products), consider the upcoming Pro version which will include optional scheduled caching.

= How do I protect my feed from abuse? =

MentoFeed includes per-IP rate limiting. Go to **MentoFeed → Settings** to configure the maximum requests per visitor and the reset period.

= Will this work with German Excel? =

Yes. Enable the UTF-8 BOM option and use semicolon as separator — German Excel will display your feed perfectly including umlauts (ä, ö, ü, ß).

= Can I use this with Google Shopping? =

Yes. Map your columns to Google Shopping fields like title, description, price, image_link, availability, and GTIN using the column builder.

== Screenshots ==

1. Feed Profile List — overview of all your feeds with status and access stats
2. Column Builder — drag-and-drop interface with inline prefix/suffix
3. Product Filters — granular control over which products appear in your feed
4. Feed Preview — see your feed data before sharing the URL
5. Access Logs — monitor every feed request with detailed stats
6. Settings — rate limiting and default configuration
7. Feed URL — prominently displayed at the top of the editor

== Changelog ==

= 1.0.1 =
* Security: Added inline sanitization for filter_include_products and filter_exclude_products POST inputs
* Security: Clarified public feed endpoint nonce exemption with proper inline documentation
* Security: Replaced dynamic SQL column interpolation with esc_sql() for whitelisted identifiers in feed log queries

= 1.0.0 =
* Initial release
* Live CSV/TSV feed generation
* Visual column builder with 50+ data sources
* 12 data transformers
* Enriched product filters (categories, tags, stock, price, sale, image, product type)
* Per-IP rate limiting
* Detailed feed access logs with filtering and bulk delete
* Token-based authentication
* UTF-8 BOM support for DACH market
* WooCommerce HPOS compatible

== Upgrade Notice ==

= 1.0.0 =
Initial release.
