Skip to main content

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

TypeDescription
WooCommerceWrites prices directly to a WooCommerce database via a dedicated DB connection
AlgoliaUpdates records in an Algolia search index
HTTPPosts the price payload to any HTTP endpoint

Common Fields

All sync targets share:

FieldDescription
nameLabel for this target
n_fusion_tenant_idWhich tenant this target belongs to
typeProvider type (WooCommerce, Algolia, HTTP)
is_activeWhen false, this target is skipped entirely
is_dry_runWhen true, the sync runs but nothing is written to the destination
debug_enabledEnables verbose logging — useful during initial setup
settingsJSON object with provider-specific settings (see each provider's page)

Managing Sync Targets

In the Filament admin:

  1. Navigate to nFusion → Sync Targets.
  2. Click Create to add a new target.
  3. Select the Type — the settings form dynamically changes to show provider-specific fields.
  4. 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:

  1. Create the target with Dry Run = enabled and Debug = enabled.
  2. Trigger a manual sync from the tenant page.
  3. Review the sync log to confirm SKU counts match expectations.
  4. If results look correct, disable dry-run mode and trigger again.