=== Replenwise – Reorder Planning ===
Contributors: replenwise
Tags: woocommerce, inventory, reorder, forecasting
Requires at least: 6.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

See your saved Replenwise reorder plan in WooCommerce: what to buy, suggested quantities and suppliers. Requires the paid Replenwise service.

== Description ==

Replenwise helps a merchant prepare a weekly reorder day from stock and sales history. This free plugin adds WooCommerce → Reorder planning. After connecting, it shows connection status, last sync, next order day, the number of SKUs to reorder and up to five saved suggestions with quantity, supplier and reason. Open the full Reorder Desk to review the plan and prepare supplier orders.

The plugin is an interface to the paid Replenwise service, which offers a 14-day trial and bills through Paddle. The plugin itself never expires. It does not collect payment or change stock, products or orders.

= External service and consent =

No request is sent to Replenwise before you choose Connect. Connect opens https://app.replenwise.app/ to create an account or sign in, then WooCommerce asks you to approve read-only access. The app reads your store address, store timezone and currency, products, SKUs, stock, prices and order line history for planning. It does not request customer, billing or shipping fields. WooCommerce's consent screen mentions customers because its read scope cannot be narrowed further.

The plugin stores a random authentication token in WordPress options. Replenwise retrieves only its store-host-bound SHA-256 hash from your store with the verified WooCommerce key. The store host accompanies each call. The token is sent only in an Authorization header to app.replenwise.app when you visit this plugin page or disconnect. Page visits request the saved summary; they do not run a new plan. There is no tracking, remote script, stylesheet or embedded frame.

Disconnect revokes the app connection, deletes WooCommerce REST keys whose description begins with exactly "Replenwise - " and removes the local plugin token. Removing the plugin deletes its local options, including its token, but makes no service request and leaves WooCommerce keys untouched: disconnect before uninstalling. Deleting your Replenwise account revokes its binding immediately; remove any remaining keys in WooCommerce settings. If the app cannot confirm a Disconnect, the plugin keeps the token and keys and links to the app’s Data page.

Service terms: https://app.replenwise.app/signup?terms#terms
Privacy and data handling: https://replenwise.app/privacy.html
Service: https://app.replenwise.app/

== Installation ==

1. Install and activate WooCommerce, then install and activate this plugin.
2. Open WooCommerce → Reorder planning and read the service and data sharing explanation.
3. Choose Connect Replenwise, create an account or sign in and approve read-only access in WooCommerce.
4. Let the first read finish. Add your supplier facts in Replenwise and save a plan in the full desk.
5. Refresh Reorder planning to see the latest saved summary.

== Frequently Asked Questions ==

= Is this free? =

The plugin is free software. Planning runs in the paid Replenwise service, with a 14-day trial billed by Replenwise through Paddle. There is no in-plugin billing or plugin trial limit.

= Does it write to my store? =

No. Replenwise asks for a read-only WooCommerce key. Disconnect deletes only Replenwise keys.

= Why is there no plan yet? =

Wait for the first read, add supplier facts and save a plan in Replenwise. The plugin only displays quantities from an existing plan already revealed in the full desk. A hidden plan asks you to open the Reorder Desk. Missing or refused recommendations must be reviewed in the full desk.

= What if my host strips Authorization headers? =

The app uses the verified connection’s existing WooCommerce authentication mode for the binding read. The plugin’s calls to Replenwise require the Authorization header; ask your host to preserve it. If Disconnect cannot be confirmed, use the app’s Data page.

= Where are suppliers managed? =

In the Replenwise desk through manual entry or the supported imports. This plugin does not read third-party supplier or purchase-order plugins.

== Screenshots ==

1. Before connecting: service details, consent and Connect.
2. Connected: last sync and saved reorder suggestions.
3. After disconnecting: ready to connect again, with keys and token removed.

== Changelog ==

= 1.0.1 =

* Connection status now says when store data updates are paused and how to resume them.

= 1.0.0 =

* Initial release: explicit consent, read-only saved plan summary and disconnect.
