=== Skwirrel PIM sync for WooCommerce === Contributors: jkoomen Tags: woocommerce, sync, erp, skwirrel Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 8.1 Stable tag: 2.0.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Synchronises products from the Skwirrel ERP/PIM system to WooCommerce via a JSON-RPC 2.0 API. == Description == Skwirrel PIM sync for WooCommerce connects your WooCommerce webshop to the Skwirrel ERP/PIM system. Products, variations, images and documents are synchronised automatically. **Features:** * Full and delta product synchronisation * Support for simple and variable products * Automatic import of product images and documents * Scheduled synchronisation via WP-Cron or Action Scheduler * Manual synchronisation from the WordPress admin panel * ETIM classification support for variation axes **Requirements:** * WooCommerce 8.0 or higher * PHP 8.1 or higher * An active Skwirrel account with API access == Installation == 1. Upload the plugin files to `/wp-content/plugins/skwirrel-pim-sync/`, or install the plugin directly through the WordPress plugin screen. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Navigate to WooCommerce > Skwirrel Sync to configure the plugin. 4. Enter your Skwirrel API URL and authentication token. 5. Click 'Sync now' to start the first synchronisation. == Frequently Asked Questions == = Which Skwirrel API version is supported? = The plugin works with the Skwirrel JSON-RPC 2.0 API. = How often are products synchronised? = You can set an automatic schedule (hourly, twice daily, or daily) or synchronise manually from the settings page. = Are existing products overwritten? = The plugin uses the Skwirrel external ID as a unique key. Existing products are updated, not duplicated. == Changelog == = 2.0.4 = * Inline "Update on re-sync" toggle in Permalinks section — saves instantly via AJAX * Slug warning only shown when "Update on re-sync" is enabled and settings have changed * Persistent hint when re-sync is enabled warning about URL overwrite and SEO impact * Add batch size hint text (1–500) = 2.0.3 = * Add Permalinks section in Settings showing current slug configuration with link to Permalinks page * Show warning when slug settings change, advising a full resync and potential link breakage * Add Selection IDs hint link to Skwirrel selections page (dynamic subdomain URL) = 2.0.2 = * Add GTIN / Manufacturer product code search filter on product list page * Store product GTIN and manufacturer product code as dedicated meta during sync * Add subtitles to Debug and Danger Zone dashboard blocks = 2.0.1 = * Rename "Collection IDs" to "Selection IDs" * Add API token creation link with dynamic subdomain URL * Add category finder link on Super category ID field * Move WordPress admin notices below the Skwirrel header = 2.0.0 = * New admin dashboard with block-grid layout replacing the tab-based UI * Sync progress banner with 6-phase checklist and live counters * Date-grouped sync history table (Today, Yesterday, day name, or date) * Settings page redesigned with grouped fieldsets and Tailwind-inspired styling * Simplified API connection: subdomain-only input with visual prefix/suffix * Remove auth type selector (always uses static token) * Sync Logs block links directly to WooCommerce logs * Debug and Danger Zone inline in the dashboard grid * Full translation update for all 7 locales (nl_NL, nl_BE, de_DE, fr_FR, fr_BE, en_US, en_GB) = 1.10.1 = * Add Domain Path header for automatic translation loading on WordPress 6.7+ * Add load_plugin_textdomain() fallback for older WordPress versions * Add nl.mo/nl.po locale files for sites using "nl" instead of "nl_NL" * Fix Danger Zone purge not removing all product attribute taxonomies — now cleans up all orphaned attributes, not just etim_* and skwirrel_variant = 1.10.0 = * Phased sync architecture — sync now runs in 5 sequential phases (fetch, products, taxonomy, attributes, media) instead of processing everything per product * Live progress checklist on the sync tab — shows current phase, status icon, and counter (e.g. "247 / 500") * Performance fix: restore getProducts API call for full sync (faster than getProductsByFilter with empty filter) * Auto-refresh now only fires on the sync tab, not on other admin pages = 1.9.9 = * Fix Danger Zone purge silently timing out on large datasets — add set_time_limit(0) to prevent PHP timeout * Rewrite Danger Zone purge to use bulk SQL — orders of magnitude faster on large stores = 1.9.8 = * Add "Skwirrel" meta box on product edit screen with single-product sync button = 1.9.7 = * Add configurable "Product manufacturer base" slug on Settings → Permalinks page = 1.9.6 = * Fix product sync failing when downloadable files are not in WooCommerce's approved directory * Downloads/documents errors no longer block category, brand and manufacturer assignment = 1.9.5 = * Brand sync always active (uses WooCommerce native product_brand taxonomy) * Add "Sync manufacturers" setting with product_manufacturer taxonomy * Default product list columns: hide Tags, show Manufacturers * Add "Filter by manufacturer" dropdown on product list page * Manufacturers column ordered after Brands, before Date = 1.9.3 = * Fix variable product variation attributes: recover parent attribute options from child variation post meta when deferred terms are empty * Convert non-variation parent attributes to global WooCommerce taxonomy-based attributes * Fix brand not assigned to variable products: propagate brand from child variations to parent * Fix categories not assigned to variable products: propagate categories from child variations to parent = 1.9.2 = * Remove legacy pa_variant migration code (no live installs to migrate) * Fix simple product attributes: save as global WooCommerce taxonomy-based attributes instead of custom text attributes, so they appear in layered navigation and product filters = 1.9.1 = * Remove legacy pre-1.8.0 Action Scheduler cleanup code (old slug reference) = 1.9.0 = * Move remaining inline event handlers (onchange, onclick) to enqueued inline script for WordPress.org compliance * Fix stale debug log path in admin help text = 1.8.4 = * Add non-variation ETIM and custom class attributes to parent variable products during sync = 1.8.3 = * Fix empty variation attribute dropdowns on variable products by deferring parent attribute term updates to a single batch flush after all variations are processed = 1.8.2 = * Replace all inline `