=== CleverConnected Product Sync ===
Contributors: ambition4clients
Tags: woocommerce, product sync, inventory, pricing, api
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sync WooCommerce product data such as availability, price, and sale period with a CleverConnected endpoint.

== Description ==

This plugin synchronizes WooCommerce product data with CleverConnected through an API endpoint.

Key features:

* Manual or scheduled synchronization via WordPress cron.
* Dry-run support for safe testing without saving changes.
* Selectable fields: availability, price, sale_price, and sale_period.
* Product selection using SKU list and optional `updated_since`.

Setup:

1. Go to **CC Product Sync** in the WordPress admin menu.
2. Enter the API base URL, domain name, and access token.
3. Optionally choose dry-run, fields, SKU filter, and updated_since.
4. Save and run manually, or let cron run on schedule.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Open **CC Product Sync** and configure the settings.

== Frequently Asked Questions ==

= Is dry-run safe for testing? =

Yes. With dry-run enabled, changes are not saved in WooCommerce.

= What happens if I leave the SKU list empty? =

The plugin uses local WooCommerce products as the source for SKU selection.

= Which fields are supported? =

`availability`, `price`, `sale_price` en `sale_period`.

== Changelog ==

= 1.3 =
* Updated API payload to the new endpoint model with access_token and domain.
* Added support for `product_selector.skus` and `updated_since`.
* Added dry-run support in settings and synchronization flow.
* Added configurable fields (`fields`).
* Improved plugin headers for WordPress.org compatibility.

== Upgrade Notice ==

= 1.3 =
This release introduces a new endpoint model and extra sync options such as dry-run and SKU selection.
