=== Zozta Connector for WooCommerce ===
Contributors: zozta, abdullahghanem
Tags: woocommerce, mobile-app, sync, api
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 8.1
WC requires at least: 6.0
WC tested up to: 10.9
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sync your WooCommerce store with the Zozta platform to generate and run a native mobile app for your shop.

== Description ==

Zozta Connector for WooCommerce links your WooCommerce store to the Zozta mobile-app platform. It syncs products, categories, orders, customers, coupons, reviews, and store configuration, and receives app orders back into WooCommerce in real time over a signed, replay-protected channel.

Features:
* One-click store registration and API-key generation
* Automatic hourly sync via WP-Cron + manual sync
* Real-time product/order/customer/coupon webhooks
* Secure reverse-push of app orders (HMAC-signed, nonce replay-protected)
* Self-hosted automatic plugin updates

== External services ==

This plugin connects to the Zozta platform (a third-party SaaS) to generate and operate your mobile app. To function, it sends your store data — products, categories, orders, customers, coupons, reviews, and store settings — to the Zozta API endpoint you configure.

* Service: Zozta — https://zozta.com
* Terms of Service: https://zozta.com/terms
* Privacy Policy: https://zozta.com/privacy

Data is transmitted only after you register your store and only to the endpoint you enter in the plugin settings. The plugin also checks that endpoint for plugin updates.

== Installation ==

1. Download the plugin .zip and upload it via Plugins → Add New → Upload Plugin (or extract to /wp-content/plugins/zozta-connector-for-woocommerce).
2. Activate the plugin.
3. Go to WooCommerce → Zozta.
4. Enter your Zozta API endpoint and click "Register store".
5. Click "Sync now" to push your catalog.

== Frequently Asked Questions ==

= Does this require a Zozta account? =
Yes. The plugin connects your store to the Zozta platform; registration creates your store record and a 14-day trial.

= Is my data secure? =
API keys and secrets are encrypted at rest. Inbound app-order pushes are HMAC-signed with timestamp and single-use nonce replay protection.

= How do updates work? =
Once connected, the plugin checks your configured endpoint for new versions and offers one-click updates in WP Admin.

== Screenshots ==

1. The Zozta settings page with guided onboarding.
2. A completed sync with status and logs.

== Changelog ==

= 1.2.0 =
* Report the WooCommerce version to the Zozta platform so it appears in the merchant portal.
* Support portal-initiated full sync ("Force sync"): the plugin now polls for and executes force-sync requests, then acknowledges them.

= 1.1.3 =
* Sync failures caused by plan limits now show a specific notice with an upgrade link instead of a generic error message.

= 1.1.2 =
* Full Arabic (ar) translation of the plugin interface.
* Refreshed the admin branding with the canonical Zozta mark.

= 1.1.1 =
* Security: reclaim proof endpoint now serves a hash binding instead of the raw token.
* Admin scripts moved to wp_enqueue_script/wp_add_inline_script.
* Added Requires Plugins header.

= 1.1.0 =
* Auto-pairing: plugin pairs automatically when API key is saved; no manual connection step.

= 1.0.0 =
* Initial release.
