Sync Targets
A sync target defines a destination where nFusion pricing data should be pushed. Each tenant can have multiple sync targets of different types.
Available Types
| Type | Description |
|---|---|
WooCommerce | Writes prices directly to a WooCommerce database via a dedicated DB connection |
Algolia | Updates records in an Algolia search index |
HTTP | Posts the price payload to any HTTP endpoint |
Common Fields
All sync targets share:
| Field | Description |
|---|---|
name | Label for this target |
n_fusion_tenant_id | Which tenant this target belongs to |
type | Provider type (WooCommerce, Algolia, HTTP) |
is_active | When false, this target is skipped entirely |
is_dry_run | When true, the sync runs but nothing is written to the destination |
debug_enabled | Enables verbose logging — useful during initial setup |
settings | JSON object with provider-specific settings (see each provider's page) |
Managing Sync Targets
In the Filament admin:
- Navigate to nFusion → Sync Targets.
- Click Create to add a new target.
- Select the Type — the settings form dynamically changes to show provider-specific fields.
- Fill in the settings and save.
Provider Registry
All providers are registered in config/sync-targets.php. The SyncTargetProviderRegistry (app/Services/Sync/SyncTargetProviderRegistry.php) resolves the correct provider class at runtime based on the target's type.
Dry-Run Workflow
Before going live with a new sync target:
- Create the target with Dry Run = enabled and Debug = enabled.
- Trigger a manual sync from the tenant page.
- Review the sync log to confirm SKU counts match expectations.
- If results look correct, disable dry-run mode and trigger again.