diff --git a/README.md b/README.md index c5976bf..03cb80c 100644 --- a/README.md +++ b/README.md @@ -1,233 +1,132 @@ -# Shopify for Inventoros - -**Two-way product, stock and order sync for Shopify.** An Inventoros Official plugin (free, AGPL-3.0-or-later). - -Connect your Inventoros inventory workflows with Shopify. Synchronize products, inventory levels and orders in both directions through asynchronous processing. - -Use mappings to connect records between systems. Webhooks and retries support the sync process, while sync history and health information help you review its status. - - - -## Contents - -- [Features](#features) -- [Screenshots](#screenshots) -- [Install](#install) -- [Set up a store](#set-up-a-store) -- [Configuration](#configuration) -- [Permissions](#permissions) -- [Compatibility](#compatibility) -- [Develop and test](#develop-and-test) -- [FAQ](#faq) -- [License](#license) +
+ +
+ Two-way product, stock and order sync between Inventoros and Shopify.
+ A free, official Inventoros plugin that runs in the background so nothing waits on Shopify.
+
+ Website · + Docs · + Changelog +
+ +
+
+## What it does
+
+
+ You confirm every match+ SKU matches stay suggestions until you confirm them, and conflicts and unmatched variants are listed instead of guessed. + |
+
+
+ |
+
+
+ |
+
+ See what synced and what didn't+ Every run keeps its per-record log, and failed items wait in a list you can retry from. + |
+
| -| | | -|-|-| -|  |  | -|  |  | -|  |  | - -## Install - -From a release: download `shopify-X.Y.Z.zip` from the [releases](../../releases), upload it in **Plugins**, then activate it. Or install it from **Plugins > Marketplace** once it is listed. - -From source: - -```bash -cd ui && npm ci && npm run build && cd .. -cp -r . /path/to/inventoros/plugins/shopify # the folder name is the slug -php artisan plugin:activate shopify # from the Inventoros root -``` +**Orders** +- Shopify orders imported exactly once +- Safe against replayed and out-of-order webhooks +- Cancellations cancel and restock through core -Activation creates the plugin's `plg_shopify_*` tables. Deactivation keeps them. Deleting the plugin drops them and removes its permissions from roles; orders it imported and stock changes it made are core records and stay. + | +-The plugin needs the Inventoros **queue worker** and **scheduler** running (`shopify:sync` every 15 minutes, `shopify:prune` daily). On cPanel the scheduler drains the queue too. +**Stock and products** +- Stock sync either way, one owner +- Product sync either way, one owner +- Shopify locations mapped to warehouses -## Set up a store + | +-Install a Shopify app with the scopes `read_products`, `write_products`, `read_inventory`, `write_inventory`, `read_locations` and `read_orders`, then connect under **Shopify > Connect a store** using client credentials for an app and store in your own Shopify organization, or an existing Admin API access token and API secret key. Map locations to warehouses, run a full sync and confirm the SKU suggestions. +**Mapping review** +- SKU matches suggested, you confirm +- Conflicts and unmatched variants listed -The step-by-step guide, with what each status means: **[docs/setup.md](docs/setup.md)**. How orders, stock, products, webhooks and retries behave: **[docs/sync.md](docs/sync.md)**. + | +
| -## Configuration +**Webhooks and sync** +- HMAC-verified webhooks, idempotent inbox +- 15-minute incremental sync as a safety net +- No Inventoros request waits on Shopify -Per connection, on the store card's **Settings**: + | +-| Setting | Default | Effect | -|---------|---------|--------| -| Who owns stock levels | Inventoros | Inventoros pushes quantities; or Shopify's levels are applied to Inventoros | -| Who owns product names and prices | Shopify | Shopify edits copied in; or Inventoros edits pushed out | -| Import Shopify orders | On | Orders flow into Inventoros | -| Also import test orders | Off | | -| Import orders placed on or after | The day you connect | Older orders are skipped | +**Retries and health** +- Retry-After, cost limits, backoff, circuit breaker +- Retry failed work from the UI +- Last sync, waiting work, error rate, run logs -## Permissions + | +-| Permission | Allows | -|------------|--------| -| `shopify.view` (View Shopify sync) | The Shopify pages and the `shopify_sync_status` MCP tool | -| `shopify.manage` (Manage Shopify sync) | Connecting stores, settings, mappings, syncs, retrying and dismissing failed work | +**Extending it** +- `order_imported` and `sync_failed` webhook events +- Read-only `shopify_sync_status` MCP tool +- Built on the shared integration kit -Admins hold both. On Inventoros versions without plugin permissions they fall back to **View Settings** and **Edit Settings**. Every action is checked on the server and limited to the user's organization. + | +