Article Overview
- Category: Cloud Storage, Remote Feeds & Hands-Free Automation
- Audience: DevOps Engineers, E-Commerce Inventory Managers & System Integrators
- Applies To: NextGen Smart Data Importer Pro
- Purpose: Technical setup guide for connecting remote cloud data sources (Google Sheets, Amazon S3, FTP/SFTP, Dropbox, Box, OneDrive) and scheduling recurring automated sync pipelines.
1. Executive Summary
Manually exporting spreadsheets from supplier portals and uploading them via a browser every morning is inefficient and prone to human error.
NextGen Smart Data Importer Pro turns WordPress into an automated data consumption hub:
- Cloud Connectors: Directly sync with Google Sheets, Amazon S3, Secure FTP (SFTP), Dropbox, Box, OneDrive, or remote HTTPS URLs.
- Automated Change Detection: NextGen monitors file ETags and modification timestamps to only process updated or altered remote feeds.
- Decoupled Server Cron: Dispatches automated background cron workers that download the remote feed, ingest data, and sync prices without requiring an open browser tab.
2. Remote Feed Ingestion Architecture
3. Configuration by Provider
Provider A: Google Sheets Sync
- Public Sheets: Simply paste the sharing link:
https://docs.google.com/spreadsheets/d/YOUR_SHEET_ID/edit#gid=0(Ensure the sheet permissions are set to "Anyone with the link can view"). - Automatic Live Polling: Every time your supplier or team edits a row in Google Sheets, NextGen pulls the latest data on its next scheduled cron cycle.
Provider B: Amazon S3 (AWS)
To connect a private S3 bucket containing catalog feeds:
- In Step 1, select Amazon S3.
- Bucket Name:
my-supplier-catalog-bucket - Region:
us-east-1(or your specific AWS bucket region) - Access Key ID & Secret Access Key: Provide an IAM user key with
s3:GetObjectread permissions. - File Path:
/feeds/daily_products.csv
Provider C: Secure FTP (SFTP) & FTP
For legacy warehouses and dropshippers that deposit daily CSVs via FTP:
- Host:
sftp.supplierportal.com - Port:
22(SFTP) or21(FTP) - Auth Mode: Password or SSH Private Key file.
- Remote File Path:
/exports/catalog.csv
4. Scheduling Recurring Hands-Free Automation
Once you configure your remote feed, set the recurring schedule in Step 3 (Import Settings ➔ Cron / Scheduling):
┌────────────────────────────────────────────────────────────────────────────────────────┐
│ RECURRING SYNC PIPELINE │
├────────────────────────────────────────────────────────────────────────────────────────┤
│ Schedule Interval: [ Hourly / Twice Daily / Daily at Midnight / Every 15 Mins ▼ ] │
│ Unique Import Cron Key: [ autogen_token_8a91fbc23 ] │
│ │
│ SYSTEM CRONTAB COMMAND: │
│ 0 * * * * /usr/bin/curl -s "https://mysite.com/index.php?rest_route=/nextgen-importer/│
│ v1/cron/process&token=autogen_token_8a91fbc23" > /dev/null 2>&1 │
└────────────────────────────────────────────────────────────────────────────────────────┘- Zero Browser Waiting: Close your laptop—the server cron executes the remote fetch and database import automatically.
- Audit Trail: Every run appends to the session server log (
/logs/server_side.log) with remote sync timestamps and row metrics.
5. Developer Hook: nextgen_importer_remote_file_downloaded
Fires immediately after a remote feed file is fetched from S3 or SFTP:
add_action('nextgen_importer_remote_file_downloaded', function ($local_tmp_path, $provider, $import_id) {
// Custom pre-processing (e.g. unzip or decrypt GPG files)
if ($provider === 'sftp' && strpos($local_tmp_path, '.zip') !== false) {
// Unzip archive before passing to parser
}
}, 10, 3);6. Frequently Asked Questions (FAQ)
Q: What happens if my supplier’s SFTP server is offline during a sync?
NextGen logs a clean error trace (SFTP Connection Failed: Timeout after 30s) to the session log and leaves your existing WordPress products untouched. It will re-attempt the connection on the next scheduled cron cycle.
Q: Can I trigger an immediate remote sync via a webhook?
Yes. Send an authenticated HTTP POST request to:
https://yoursite.com/index.php?rest_route=/nextgen-importer/v1/sync-and-run/{import_id}&token=YOUR_CRON_SECRET
This allows external Zapier, Make, or CI/CD pipelines to trigger instant syncs.