=== SellViaApp for WooCommerce ===
Contributors: sellviaapp
Tags: woocommerce, mobile app, catalogue, orders, synchronization
Requires at least: 5.7
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.2.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your WooCommerce store to your SellViaApp mobile commerce app.

== Description ==

The plugin sends WooCommerce categories, subcategories, products, variations, images, prices, promotions, taxes, stock, visibility settings, and customer accounts to SellViaApp. It imports SellViaApp orders into WooCommerce with duplicate protection. Customer synchronization never sends an email.

Main features:

* Manual first synchronization processed in small batches.
* Automatic catalogue, price, and stock updates.
* Manual or automatic SellViaApp order imports.
* Order acknowledgements and unique identifiers that prevent duplicates.
* HMAC-signed webhook notifications.
* Local technical logs that never contain access credentials.
* WooCommerce HPOS compatibility.
* Initial and automatic customer account synchronization without email delivery.

== Installation ==

1. Upload and activate the plugin in WordPress.
2. Open the SellViaApp menu in the WordPress administration area.
3. Enter the app API key and supplier integration token generated in SellViaApp Dashboard > API.
4. Test the connection.
5. Start the first catalogue and customer synchronization.

== Frequently Asked Questions ==

= Does synchronization start automatically after activation? =

No. The first complete synchronization must be started explicitly from the WooCommerce administration area.

= Can the same order be imported twice? =

No. The plugin uses the unique SellViaApp identifier, WooCommerce order metadata, and an API acknowledgement to prevent duplicates.

= Where are the API credentials stored? =

The integration token and webhook secret are encrypted with the security keys of the WordPress installation. Credentials are never written to the technical log.

== Changelog ==

= 1.2.6 =
* Added a beginner-friendly step-by-step guide for finding the X-API-Key and supplier integration Bearer token.
* Added a direct secure link to the API credentials page in the SellViaApp dashboard.
* Clarified where to copy and paste each credential and how to test the connection.

= 1.2.5 =
* Added a clear choice between connecting an existing SellViaApp account and creating a new app.
* Added a prominent free app creation action linking to the secure SellViaApp onboarding page.
* Improved responsive layout and accessibility for the connection configuration panel.

= 1.2.4 =
* Renamed the official plugin slug to `sellviaapp-for-woocommerce` to comply with the WooCommerce trademark requirements.
* Aligned the plugin directory, main file, text domain, and download package with the approved slug.

= 1.2.3 =
* Prepared and documented all direct database queries required by the dedicated log and mapping tables.
* Added caching and cache invalidation for log and mapping reads.
* Strengthened input sanitization and nonce verification in the administration interface.
* Removed the discouraged manual translation loader and converted the public readme to standard English.

= 1.2.2 =
* Fixed WordPress translation checks for strings containing placeholders.
* Explicitly escaped exception messages and displayed values.
* Added the translation directory declared in the plugin header.

= 1.2.1 =
* Added support for PHP 7.2, 7.3, and 7.4 while retaining PHP 8.x support.
* Replaced syntax and functions limited to PHP 7.4 or PHP 8 with compatible equivalents.

= 1.2.0 =
* Added a dedicated SellViaApp administration menu and icon.
* Added direct submenus for full synchronization and new order imports.
* Isolated the plugin header from notices generated by WordPress, WooCommerce, or other plugins.

= 1.1.1 =
* Added immediate batched customer synchronization after a WooCommerce profile is saved.
* Added synchronization when the customer role is assigned later, without email delivery.

= 1.1.0 =
* Added WooCommerce customer synchronization with SellViaApp.
* Preserved the exact WooCommerce username in the customer login field.
* Added automatic SellViaApp profile updates after WooCommerce customer changes.
* Prevented email delivery during synchronized customer creation and updates.

= 1.0.2 =
* Repaired deleted categories when they are synchronized again.
* Improved product links to the most precise category and subcategory.
* Added automatic synchronization after WooCommerce category creation or updates.
* Fixed order imports on recent PHP versions.

= 1.0.1 =
* Verified compatibility with WordPress 5.7 through 7.0 and WooCommerce 5.2 through 11.0.
* Deferred Action Scheduler registration on recent WooCommerce versions.
* Verified HPOS and WooCommerce CRUD API compatibility.

= 1.0.0 =
* First complete release.
