=== ChatWeb for WooCommerce ===
Contributors: aifusionlab
Tags: chatbot, ai, woocommerce, customer support, live chat
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.0.3
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This plugin is developed by AIFusionLab, the developer team behind ChatWeb.

== Description ==

ChatWeb for WooCommerce allows you to easily integrate ChatWeb's AI-powered chatbot into your WooCommerce store. The plugin provides a simple interface to manage your API key, embed code, and synchronize your WooCommerce products with ChatWeb.

= Features =

* 🔑 Easy API Key management
* 💬 Automatic chatbox widget integration
* 🛍️ WooCommerce product synchronization
* 🌍 Multi-language support (9 languages)
* 📊 Dashboard with sync statistics
* 🔄 Automatic and manual product sync
* 📝 Detailed sync logs
* ⚡ Cache management
* 🚀 Bulk sync API for faster product synchronization

= Supported Languages =

* 🇻🇳 Vietnamese (Tiếng Việt)
* 🇺🇸 English
* 🇫🇷 French (Français)
* 🇪🇸 Spanish (Español)
* 🇩🇪 German (Deutsch)
* 🇮🇹 Italian (Italiano)
* 🇯🇵 Japanese (日本語)
* 🇳🇱 Dutch (Nederlands)
* 🇧🇷 Portuguese (Português do Brasil)

= WooCommerce Integration =

ChatWeb for WooCommerce seamlessly integrates with WooCommerce to:

* Automatically sync products when created, updated, or deleted
* Bulk sync all products with one click
* Track sync progress in real-time
* View detailed sync logs
* Handle product variations and categories
* Sync product images and metadata

= Privacy & Data =

This plugin connects to ChatWeb API (https://api-dev.chatweb.to) to:

* Validate your API key
* Retrieve chatbot embed code
* Synchronize WooCommerce product data
* Display chatbot widget on your website

By using this plugin, you agree to ChatWeb's Terms of Service and Privacy Policy.

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Go to Plugins → Add New
3. Search for "ChatWeb for WooCommerce"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin ZIP file
2. Log in to your WordPress admin panel
3. Go to Plugins → Add New → Upload Plugin
4. Choose the ZIP file and click "Install Now"
5. Activate the plugin

= Configuration =

1. Go to ChatWeb menu in WordPress admin
2. Enter your ChatWeb API Key (get it from https://chatweb.io)
3. Click "Save API Key"
4. The chatbox widget will automatically appear on your website

= WooCommerce Setup (Optional) =

1. Go to ChatWeb → WooCommerce
2. Enable "Auto-sync products"
3. Click "Sync all products" to perform initial synchronization

== Frequently Asked Questions ==

= Do I need a ChatWeb account? =

Yes, you need a ChatWeb account and API key to use this plugin. Sign up at https://chatweb.io

= Is WooCommerce required? =

Yes, WooCommerce is required. This plugin is designed to integrate ChatWeb's AI chatbot with your WooCommerce store, including automatic product synchronization.

= Which languages are supported? =

The plugin interface is available in 9 languages: Vietnamese, English, French, Spanish, German, Italian, Japanese, Dutch, and Portuguese (Brazil).

= How do I get an API key? =

Sign up for a ChatWeb account at https://chatweb.io and get your API key from the dashboard.

= Can I customize the chatbot appearance? =

Yes, you can customize the chatbot appearance from your ChatWeb dashboard at https://chatweb.io

= How often are products synced? =

Products are automatically synced when created, updated, or deleted (if auto-sync is enabled). You can also manually sync all products at any time.

= What data is sent to ChatWeb? =

When syncing products, the following data is sent: product ID, name, description, price, SKU, stock status, categories, and images. No customer data is sent.

= Is this plugin GDPR compliant? =

The plugin itself does not collect or store personal data. However, the ChatWeb chatbot may collect visitor interactions. Please review ChatWeb's privacy policy and configure your chatbot accordingly.

== Screenshots ==

1. API Key configuration screen
2. Dashboard with sync statistics
3. WooCommerce product synchronization
4. Sync logs and progress tracking
5. Chatbot widget on frontend

== Changelog ==

= 1.0.3 =
* Fixed: Version consistency across plugin files
* Fixed: Script/style cache busting using plugin version instead of time()
* Fixed: Embed code sanitization to preserve script tags
* Fixed: Debug logger table cleanup on uninstall
* Removed: Hidden debug page from production code
* Security: Improved options cleanup on uninstall

= 1.0.2 =
* Improved: Embed code validation and storage reliability
* Improved: Error handling for API connections
* Fixed: Base64 fallback for embed code storage

= 1.0.1 =
* Added: Bulk sync API for faster product synchronization (5-6x faster)
* Added: Improved error handling for product sync
* Added: Better logging for debugging
* Improved: Performance optimization for large product catalogs
* Fixed: Transient handling for batch processing
* Updated: Translation files for all 9 languages

= 1.0.0 =
* Initial release
* API Key management
* Chatbox widget integration
* WooCommerce product synchronization
* Multi-language support (9 languages)
* Dashboard and sync logs
* Automatic and manual sync
* Cache management

== Upgrade Notice ==

= 1.0.3 =
This version includes security fixes and code quality improvements. Upgrade recommended.

= 1.0.1 =
This version includes major performance improvements for product synchronization. Upgrade recommended for sites with large product catalogs.

= 1.0.0 =
Initial release.

== Third-Party Services ==

This plugin relies on the following third-party service:

**ChatWeb API**
* Service URL: https://api-dev.chatweb.to
* Purpose: API key validation, chatbot embed code retrieval, product synchronization
* Terms of Service: https://chatweb.io/terms-of-service
* Privacy Policy: https://chatweb.io/privacy-policy

Data sent to ChatWeb API:
* API key for authentication
* WooCommerce product data (when sync is enabled)
* Website URL and basic WordPress information

== License ==

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

== Support ==

For support, please visit:
* Website: https://chatweb.io
* Email: hello@chatweb.io

== Credits ==

Developed by AIFusionLab Co., Ltd
Website: https://aifusionlab.io

