Skip to main content

How Synchronization Works

The Sync Process

When you start a sync, here's what happens:

  1. Connection Check

    • The app connects to GeSmart ERP API
    • The app connects to PrestaShop via the custom module
  2. Data Retrieval

    • Fetches data from GeSmart ERP
    • Determines which items need to be synced (for incremental syncs)
  3. Data Processing

    • Processes items one by one
    • Transforms data format if needed
    • Validates data before sending
  4. Data Transfer

    • Sends data to PrestaShop
    • Creates new items or updates existing ones
    • Handles errors gracefully
  5. Progress Tracking

    • Updates progress in real-time
    • Logs each item processed
    • Records errors for review
  6. Completion

    • Updates sync status
    • Saves sync results
    • Sends notifications (if configured)

Data Flow Diagram

GeSmart ERP → GeSmart Sync App → PrestaShop Module → PrestaShop Database
↓ ↓ ↓ ↓
Products Processes Creates/Updates Store Updated
Customers Validates Handles Errors Customers Updated
Brands Transforms Logs Progress Brands Updated
Categories Tracks Progress Returns Status Categories Updated

Sync Modes

Incremental Sync

  • What it does: Only syncs items that have changed since the last sync
  • When to use: Regular updates, daily syncs, when you want speed
  • Benefits: Faster, less load on systems, only updates what's needed
  • Example: If 100 products changed out of 10,000, only those 100 are synced

Full Sync

  • What it does: Syncs ALL items, regardless of when they were last updated
  • When to use: Initial setup, after major changes, when you want to ensure everything is synced
  • Benefits: Complete synchronization, catches any missed updates
  • Example: All 10,000 products are checked and synced

Which Should You Use?

  • Daily operations: Use Incremental sync
  • Weekly maintenance: Use Full sync once a week
  • After major changes: Use Full sync
  • Initial setup: Use Full sync