Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/zeeshanraza-official/wpcalibrate-supplier-product-importer/releases/download/v1.0.4/wpcalibrate-supplier-product-importer.zipEnterprise-grade WooCommerce supplier product import, mapping, and multi-currency synchronization system supporting generic REST APIs (JSON), streaming CSV feeds, and XML feeds with tiered pricing markups, profit floors, and field ownership protection.
📖 About The Project
Modern WooCommerce stores sourcing inventory from external wholesalers, distributors, and manufacturers face critical challenges: memory exhaustion during large feed parsing, merchant copy overwrites during price updates, inaccurate multi-currency conversions, and database locks.
WPCalibrate Supplier Product Importer solves these operational bottlenecks with a resilient, modular architecture:
- Zero Memory Exhaustion: Feeds are ingested via PHP Generators and streamed in chunked Action Scheduler queues, safely processing catalogs of 50,000+ SKUs even on modest hosting environments.
- Merchant Copy Protection: Granular field ownership matrices guarantee merchant-customized titles, descriptions, and curated retail prices remain pristine during automated inventory syncs.
- Multi-Currency Pricing Architecture: Supplier wholesale costs (e.g. INR) are strictly decoupled from WooCommerce retail prices, applying automated currency conversion, tiered profit markups, safety threshold guards, and psychological price rounding (.99).
- Pure WooCommerce CRUD Ingestion: Built natively for modern WooCommerce with High-Performance Order Storage (HPOS) compliance and atomic database transactions.
✨ Features
🔌 Multi-Protocol Data Source Adapters
- Generic REST API Adapter: Connects to any JSON API endpoint with customizable header parameters, bearer token authentication, dot-notation JSON path extraction (e.g.
data.items.*), pagination, and rate-limit handling. - High-Performance CSV Adapter: Memory-efficient streaming parser configurable by delimiter (
,,;,\t,|), text enclosure, and header row mapping. - XML Feed Adapter: LibXML-based parser with XXE (XML External Entity) injection defenses and custom XPath repeat-node selection.
💱 Multi-Currency Pricing Engine
- Decoupled Supplier Cost vs. Store Retail: Wholesale supplier currency is converted into your store currency before retail markups.
- Tiered Profit Markups: Define tiered markups based on wholesale cost brackets (e.g., 0–500 INR @ 40%, 501–2000 INR @ 30%, 2001+ INR @ 20%).
- Markup Modalities: Support for percentage, fixed amount, combined (percentage + fixed fee), or tiered margin models.
- Minimum Profit Floors: Guarantees a minimum dollar profit per SKU regardless of promotional discounts.
- Psychological Price Rounding: Automatically rounds calculated retail prices to
.99,.95, or nearest whole integer. - Price Spike Safety Threshold: Blocks automated sync if a supplier price increases or decreases beyond a safety percentage (e.g. 40%), preventing catastrophic margin loss from upstream feed glitches.
🛡️ Merchant Field Ownership Protection
- Granular Attribute Control: Determine which product attributes upstream suppliers are permitted to update:
- Protected by Default: Product Title, Long Description, Short Description, and Retail Price.
- Automated by Default: Stock Quantity, Stock Status (
instock/outofstock), and Wholesale Cost.
- Store Copy Preservation: Allows merchants to optimize SEO copy and photos without fear of automated sync overwriting work.
⚡ Synchronization & Background Queueing
- Action Scheduler Integration: Sync jobs execute asynchronously in background batch chunks, preventing PHP timeout errors (
max_execution_time). - Mutex Concurrency Locking: Atomic transients lock sync processes per supplier (
wpcalibrate_spi_lock_supplier_{id}), eliminating race conditions and duplicate catalog insertions. - Safe Dry-Run Engine: Simulate complete import and sync runs with zero database modifications to inspect transformed pricing, mapped fields, and validation issues before applying live changes.
- Emergency Lock Release: One-click mutex unlock in admin dashboard if a remote network failure interrupts a running worker.
🔐 Security & Data Isolation
- AES-256-GCM Encrypted Credentials: Supplier API keys, passwords, and bearer tokens are encrypted at rest using WordPress
AUTH_KEY/AUTH_SALTand OpenSSL AES-256-GCM. - Zero Customer Data Leakage: Ingestion operates strictly downstream on catalog feeds. Customer, order, and billing data are never shared or transmitted upstream.
- Strict Capabilities: Protected by strict capability checks (
manage_woocommercefor suppliers,manage_optionsfor settings) and nonces.
🚀 Quickstart & Setup Guide
1. Installation
Option A: Direct WordPress Dashboard Upload (Recommended)
- Download the latest
wpcalibrate-supplier-product-importer.zipfrom the GitHub Releases page. - Go to WordPress Admin > Plugins > Add New > Upload Plugin.
- Choose the downloaded ZIP file and click Install Now.
- Click Activate Plugin.
Option B: Manual Server Upload
- Extract
wpcalibrate-supplier-product-importer.zip. - Upload the
wpcalibrate-supplier-product-importer/directory to/wp-content/plugins/. - Activate the plugin via Plugins > Installed Plugins.
2. 4-Step Guided Setup Workflow
Navigate to WPCalibrate > Supplier Importer:
Step 1: Connect Supplier Source
- Navigate to the Suppliers tab and click Add Supplier.
- Enter supplier profile details, source type (
REST API,CSV Feed, orXML Feed), and feed endpoint URL. - Configure authentication parameters (None, Basic Auth, Bearer Token, or API Key Header).
- Click Test Connection to verify live HTTP handshake.
Step 2: Configure Field Mapping
- Navigate to the Imports & Preview tab and select your configured supplier.
- Click Fetch Sample Data to inspect upstream feed fields.
- Map incoming fields to WooCommerce attributes:
supplier_product_id(Unique ID, required)sku(Store SKU)title(Product Name)cost(Wholesale Price)stock_quantity(Available Stock)description,short_description,category_path,image_url.
Step 3: Configure Multi-Currency Pricing
- Navigate to the Pricing & Currency tab.
- Set exchange conversion rates (e.g.
INRtoUSD). - Select your markup modality (Percentage, Fixed, Combined, or Tiered).
- Enable Price Spike Safety Threshold (e.g.
40%) to guard against upstream anomalies.
Step 4: Dry-Run Preview & Scheduled Automation
- In the Imports & Preview tab, click Run Dry-Run Preview.
- Review calculated retail prices, currency conversions, and conflict reports.
- Enable automatic sync frequency (
Hourly,Twice Daily, orDaily) under the Synchronization tab.
🔄 Automatic Dashboard Updates via GitHub
This plugin supports direct 1-click updates directly inside the WordPress Dashboard whenever a new release is published to GitHub.
How It Works:
- Native Release Listener: Built-in update checking connects to GitHub Releases API. When a new version is released, WordPress automatically displays standard update notices under Dashboard > Updates and Plugins.
- 1-Click Upgrade: Clicking Update Now automatically downloads the verified release archive and updates the plugin files without manual FTP or ZIP uploads.
- GitHub Updater Compatible: Fully compatible with GitHub Updater and Plugin Update Checker.
🛠️ Architecture & Developer Reference
wpcalibrate-supplier-product-importer/
├── assets/
│ ├── css/admin.css # Modern SaaS design system tokens & responsive grids
│ └── js/admin.js # Handshake testing, field sampling & AJAX sync triggers
├── branding/
│ ├── icon-dark.png # Dark high-res official brand mark
│ └── icon-white.png # White SVG/PNG menu icon
├── languages/
│ └── wpcalibrate-supplier-product-importer.pot # Translation template catalog
├── src/
│ ├── Activation/ # Activation, deactivation & cleanup hooks
│ ├── Adapters/
│ │ ├── Auth/ # Basic, Bearer & Header authentication handlers
│ │ ├── Contracts/ # Adapter interface & response DTOs
│ │ ├── Csv/ # Memory-safe CSV streaming generator
│ │ ├── Rest/ # Generic REST API client & dot-notation extractor
│ │ ├── Xml/ # LibXML / SimpleXML XXE-hardened parser
│ │ └── AdapterRegistry.php # Protocol registry & factory
│ ├── Admin/ # Admin menu, SaaS tab screens & AJAX dispatchers
│ ├── API/ # WP REST API management endpoints
│ ├── Currency/ # Manual & extensible exchange rate providers
│ ├── Database/ # dbDelta schema manager & custom repositories
│ ├── Import/ # Dry-run simulator, product matcher & normalization
│ ├── Jobs/ # Action Scheduler worker & mutex lock manager
│ ├── License/ # Commercial licensing abstraction
│ ├── Logging/ # Secret-scrubbing diagnostic activity logger
│ ├── Pricing/ # Multi-currency calculator, markups & rounding
│ ├── Security/ # AES-256-GCM encryption & capability checks
│ ├── Support/ # Diagnostics & support endpoints
│ ├── Sync/ # Merchant field ownership & stock synchronizer
│ ├── Updates/ # Native GitHub dashboard update listener
│ ├── WooCommerce/ # HPOS product creator & media sideloading
│ └── Plugin.php # Core DI container & hook orchestrator
├── LICENSE.txt # GNU General Public License v2.0 or later
├── readme.txt # WordPress.org standard metadata
├── uninstall.php # Configurable data retention / database cleanup
└── wpcalibrate-supplier-product-importer.php # Main plugin bootstrap entry point
Database Schema (Custom Tables)
| Table | Description |
|---|---|
wpcalibrate_spi_suppliers |
Multi-supplier connection parameters, protocols, encrypted secrets, and schedules. |
wpcalibrate_spi_product_map |
Persistent mapping between (supplier_id, supplier_product_id) and WooCommerce post_id. |
wpcalibrate_spi_jobs |
Action Scheduler async batch queue states and progress. |
wpcalibrate_spi_job_items |
Item-level import audit trail with error codes and statuses. |
wpcalibrate_spi_logs |
Context-sanitized diagnostic activity logs with automatic 30-day retention pruning. |
📋 System Requirements
| Component | Minimum Requirement | Verified Target |
|---|---|---|
| PHP | 8.2.0 |
PHP 8.2, PHP 8.3+ |
| WordPress | 7.0 |
WordPress 7.0 to 7.1.3 |
| WooCommerce | 11.2 |
WooCommerce 11.2 to 11.2.1 |
| HPOS | Supported | Custom Order Tables Compatible |
| PHP Extensions | openssl, curl, simplexml, libxml, mbstring |
Standard on modern PHP |
📝 Changelog
[1.0.4] - 2026-10-17
- Fixed: Admin parent menu hook asset bypass (
toplevel_page_wpcalibrate) causing missing styles and enlarged logo when clicking the top-level WPCalibrate menu item. - Fixed: Enforced strict HTML dimensions and inline style constraints on logo element to eliminate layout shifts before CSS parsing.
- Fixed: WordPress admin submenu duplication under parent WPCalibrate menu.
- Fixed: Standardized remote deployment and packaging to eliminate duplicate plugin folder installations on WordPress servers.
- Enhanced: Ultra-modern SaaS segmented pill navigation bar with active badge elevation, subtle background, and smooth hover micro-animations.
- Added: Native GitHub release update listener for 1-click dashboard upgrades.
[1.0.3] - 2026-10-16
- Enhanced: Standardized all plugin tabs (Suppliers, Imports, Sync, Pricing, Settings, Logs, License, Support) to elevated SaaS design system.
- Enhanced: Suppliers directory with KPI metric stat pills, source protocol badges, active status indicators, and empty-state onboarding.
- Enhanced: Re-architected Supplier configuration form into 4 modular cards with AES-256 zero-knowledge badges and live handshake tester.
[1.0.2] - 2026-10-16
- Added: Comprehensive Overview tab with Purpose Banner, interactive 4-step workflow guide, 4 architecture pillars, and server readiness diagnostics checklist.
- Fixed: WordPress notice barrier pattern preventing third-party notices (e.g. Elementor Pro) from infiltrating brand header cards.
[1.0.1] - 2026-10-16
- Fixed: Currency string cleaning resolving abbreviation dots (e.g.
Rs. 350.00) across all feed adapters. - Fixed: Intelephense typing and constant inspections in test stubs.
- Added: Automated test suite (45 assertions passing with 100% pass rate).
[1.0.0] - 2026-10-16
- Initial Release: Production-ready supplier product import and multi-currency synchronization system for WooCommerce.
🛡️ License
WPCalibrate Supplier Product Importer is licensed under the GNU General Public License v2.0 or later.
💬 Support & Inquiries
- Official Website: https://wpcalibrate.com
- Marketplace: https://marketplace.wpcalibrate.com
- Support Email: support@wpcalibrate.com
- Direct WhatsApp: +44 7474 795976
Releases
1 release. Each count is every asset in that release; expand a row for the breakdown.