=== Sync2Fashion Connector for WooCommerce ===
Contributors: sync2fashion
Tags: woocommerce, sync2fashion, product sync, stock sync, order sync
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.3.7
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects your WooCommerce store to Sync2Fashion. Receives product/stock updates and sends orders automatically.

== Description ==

The Sync2Fashion Connector for WooCommerce integrates your online store with the Sync2Fashion platform.

Key features:

* Receives product and stock updates from Sync2Fashion automatically.
* Sends new orders to Sync2Fashion in real time.
* Secure communication via signature verification.
* Compatible with WooCommerce 6.0 and higher.
* Supports WordPress Multisite.

**Note:** This plugin does not perform any deletions — neither of files nor of database records. Only INSERT and UPDATE operations are executed.

== Installation ==

1. Upload the `wc-sync2fashion-connector` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **WooCommerce > Sync2Fashion** and complete the enrollment wizard to connect your store.

== Frequently Asked Questions ==

= Does this plugin delete any data? =
No. The plugin only performs INSERT and UPDATE operations on the database. No files or records are ever deleted.

= What WooCommerce version is required? =
WooCommerce 6.0 or higher.

= My store uses a WAF (Cloudflare, Sucuri, Wordfence…). What should I do? =
Make sure POST requests from `www.sync2fashion.com` are not blocked. If you experience connection issues, review your firewall rules and allow the `sync2fashion.com` domain.

== Changelog ==

= 1.3.7 - 2026-06-18 =
* Fixed: `Tested up to` updated to 7.0 (current WordPress version) to resolve `outdated_tested_upto_header` check.

= 1.3.6 - 2026-06-18 =
* Fixed: License changed from `Proprietary` to `GPL-2.0-or-later` to comply with WordPress.org requirements.
* Fixed: `Tested up to` updated to 6.8 (current WordPress version).
* Fixed: Replaced `date()` with `gmdate()` in `wc-sync2fashion-connector.php` and `class-api-endpoint.php` to avoid timezone-dependent output (`WordPress.DateTime.RestrictedFunctions.date_date`).
* Fixed: Replaced `parse_url()` with `wp_parse_url()` in `class-product-handler.php` (`WordPress.WP.AlternativeFunctions.parse_url_parse_url`).
* Fixed: Replaced `unlink()` with `wp_delete_file()` in `class-product-handler.php` (`WordPress.WP.AlternativeFunctions.unlink_unlink`).
* Fixed: Replaced bare `mkdir()` fallback with `wp_mkdir_p()` in `class-api-endpoint.php` (`WordPress.WP.AlternativeFunctions.file_system_operations_mkdir`).

= 1.3.5 - 2026-06-18 =
* Changed: Plugin URI and Author URI updated from `https://sync2fashion.com` to `https://www.sync2fashion.com` to use the canonical URL with `www` prefix.
* Security: Fixed `WordPress.Security.EscapeOutput.OutputNotEscaped` — all admin-page and template outputs of i18n strings now wrapped with `wp_kses_post()`; constant and `date()` outputs wrapped with `esc_html()`; `admin_url()` in notices wrapped with `esc_url()`.
* Security: Fixed `PluginCheck.Security.DirectDB.UnescapedDBParameter` in `class-api-endpoint.php` — replaced raw variable interpolation in `$wpdb->get_results()` with `$wpdb->prepare()` using `%d` placeholders.

= 1.3.4 =
* Previous release.

== Upgrade Notice ==

= 1.3.5 =
Updates plugin and author URLs to the canonical `www.sync2fashion.com` address. No functional changes.
