=== AI Merchant Feed ===
Contributors: posicionamientowebsystems
Tags: chatgpt, woocommerce, product feed, ai shopping, merchant
Requires at least: 5.8
Tested up to: 6.9
Stable tag: 3.0.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jesuslopez-gpt-merchant-feed
Domain Path: /languages

Connect your WooCommerce store to AI shopping platforms with a complete JSON product feed in ACP 1.0 format.

== Description ==

**AI Merchant Feed** generates a complete JSON product feed optimized for ChatGPT Shopping and AI-powered shopping platforms.

Your feed is available at: `https://yourdomain.com/feed/chatgpt/`

= Features =

* **Complete JSON Feed** - Full ACP 1.0 format optimized for AI platforms
* **All Products Included** - Every published WooCommerce product with a price
* **Full Descriptions** - Complete product descriptions without truncation
* **Multiple Images** - Full gallery support for each product
* **Variable Products** - Complete support for all product variations with attributes
* **Product Identifiers** - SKU, brand, GTIN (EAN/UPC/ISBN), and MPN when available
* **Categories** - Full product category hierarchy
* **Sale Prices** - Regular and sale price support
* **Stock Status** - In stock, out of stock, and backorder status
* **Multilingual Ready** - Compatible with WPML and Polylang
* **Performance Optimized** - Efficient batch processing for large catalogs
* **CORS Enabled** - Ready for AI platform access
* **No Data Storage** - Does not store any data or make external requests

= How It Works =

1. Install and activate the plugin
2. Ensure WooCommerce is installed with published products
3. Go to Settings > AI Merchant Feed
4. Copy your feed URL
5. Submit the URL to [OpenAI Feeds](https://chat.openai.com/feeds) for ChatGPT Shopping

= Feed Format =

The plugin generates a JSON feed following the ACP (AI Commerce Protocol) 1.0 specification:

* Feed metadata (title, description, URL, language, last updated)
* Product details (title, description, URL, images)
* Pricing (price, currency, sale price)
* Availability (in stock, out of stock, backorder)
* Identifiers (SKU, GTIN, MPN, brand)
* Categories and attributes
* Variations for variable products

= Requirements =

* WordPress 5.8 or higher
* WooCommerce 5.0 or higher
* PHP 7.4 or higher

= Pro Services =

Looking for additional services? [AI Merchant Pro](https://aimerchantpro.com) offers external services including:

* Google Merchant Center XML feed generation
* Feed validation and diagnostics service
* Analytics and access tracking
* Automatic push to OpenAI API
* Scheduled synchronization service
* Priority support

== Installation ==

= Automatic Installation =

1. Go to Plugins > Add New in your WordPress admin
2. Search for "AI Merchant Feed"
3. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin ZIP file
2. Go to Plugins > Add New > Upload Plugin
3. Upload the ZIP file and click "Install Now"
4. Activate the plugin

= After Activation =

1. Go to Settings > AI Merchant Feed
2. Copy the feed URL displayed on the page
3. Submit your feed URL to your preferred AI shopping platform

== Frequently Asked Questions ==

= What is ACP 1.0? =

ACP (AI Commerce Protocol) is a standardized JSON format for product feeds that AI platforms like ChatGPT can easily understand and process. It includes structured product data optimized for AI shopping experiences.

= Does this work with variable products? =

Yes! The plugin fully supports WooCommerce variable products. Each variation is included with its specific attributes (like size and color), price, availability, and image.

= Is there a product limit? =

No. All published WooCommerce products with prices are included in the feed. The plugin uses efficient batch processing to handle large catalogs.

= Does this slow down my website? =

No. The feed is generated on-demand only when the feed URL is accessed. It does not affect your site's normal performance.

= How does it find brand/GTIN/MPN data? =

The plugin automatically checks common sources:

* **Brand**: WooCommerce Brands, Perfect WooCommerce Brands, YITH Brands, product attributes, and meta fields
* **GTIN**: Common meta fields including EAN, UPC, ISBN, and various plugin formats
* **MPN**: Common meta fields for manufacturer part numbers

= Is this compatible with WPML/Polylang? =

Yes. The plugin respects the current language context and outputs the appropriate language code in the feed.

= Can I customize what's included in the feed? =

Yes. The plugin provides several filters for developers to customize the feed output:

* `gptmf_feed_data` - Filter the complete feed
* `gptmf_feed_info` - Filter feed metadata
* `gptmf_products` - Filter the products array
* `gptmf_mapped_product` - Filter individual product data
* `gptmf_product_query_args` - Customize product query

= Where do I submit my feed? =

Visit [OpenAI Feeds](https://chat.openai.com/feeds) to submit your feed URL for ChatGPT Shopping integration.

== Screenshots ==

1. Admin dashboard showing feed URL and product statistics
2. Example JSON feed output with product data
3. Copy URL functionality for easy submission

== Changelog ==

= 3.0.3 =
* Security: Removed unused AJAX endpoint
* Improved: WordPress.org coding standards compliance
* Added: Requires Plugins header for WooCommerce dependency
* Removed: Deprecated load_plugin_textdomain() call
* Fixed: Prefixed global variables in templates

= 3.0.2 =
* NEW: Auto-sync information banner - highlights real-time feed updates vs competitors
* NEW: Highlighted stat card for Real-time Sync feature
* Improved: Added tooltip explaining automatic synchronization

= 3.0.1 =
* NEW: Modern SaaS-style admin dashboard UI
* NEW: Visual onboarding stepper guide
* NEW: Stats cards with KPIs
* NEW: Improved copy URL with visual feedback
* Fixed: UTF-8 encoding issues in product descriptions
* Fixed: Double-encoded characters in feed output
* Updated: ChatGPT Merchants URL

= 3.0.0 =
* Complete plugin rewrite
* Full JSON feed without any restrictions
* Added complete variable product support with all variations
* Added full image gallery support (all product images)
* Added brand detection from multiple sources
* Added GTIN detection (EAN, UPC, ISBN, barcode)
* Added MPN (Manufacturer Part Number) support
* Added product weight data
* Added sale price support
* Added variant-specific images and SKUs
* Added category hierarchy support
* Improved performance with batch processing
* Added CORS headers for AI platform access
* Added HPOS (High-Performance Order Storage) compatibility
* Updated to WordPress 6.7 compatibility
* Updated text domain to match WordPress.org slug
* Improved code quality to WordPress coding standards

= 2.5.0 =
* Changed feed format from XML to JSON (ACP 1.0)
* Added feed endpoint at /feed/chatgpt/
* Added admin dashboard

= 2.4.2 =
* Adjusted text domain for WordPress.org compliance
* Added GPL license headers

= 2.4.1 =
* Initial public release

== Upgrade Notice ==

= 3.0.0 =
Major update with complete rewrite. Now includes all products, full descriptions, multiple images, variable products, and comprehensive product data without any restrictions.
