YourCoding Backorder System
Advanced backorder management system for WooCommerce with supplier stock integration
by YourCoding · github.com/yourcodingnl/yoco-backordersystem · website
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/yourcodingnl/yoco-backordersystem/archive/refs/heads/main.zipReadme
YoCo - Backorder System
Advanced backorder management system for WooCommerce with supplier stock integration for Jokasport.
Features
Core Functionality
- Supplier Management: Configure multiple suppliers with individual feed URLs and settings
- CSV Feed Processing: Automatic parsing and mapping of supplier stock feeds
- Product Integration: Per-product backorder settings with parent-child support
- Manual & Automatic Sync: Flexible synchronization scheduling
- Comprehensive Logging: Detailed sync logs with error tracking
Key Components
- Leverancier Integratie: Uses existing
pa_xcore_suppliersproduct taxonomy - Stock Tracking: Real-time supplier stock visibility in admin
- Backorder Logic: Intelligent stock status updates based on supplier availability
- Delivery Time Management: Custom delivery times per supplier
Installation
-
Upload Plugin
# Upload to WordPress plugins directory /wp-content/plugins/yoco-backordersystem/ -
Activate Plugin
- Go to WordPress Admin → Plugins
- Find "YoCo - Backorder System"
- Click "Activate"
-
Database Setup
- Plugin automatically creates required database tables on activation
- Tables:
yoco_supplier_settings,yoco_supplier_stock,yoco_sync_logs
Configuration
1. Supplier Setup
- Navigate to YoCo Backorder → Suppliers
- Select a supplier from the existing
pa_xcore_supplierstaxonomy - Configure:
- Feed URL
- CSV delimiter and mapping
- Update frequency and times
- Default delivery time text
2. CSV Mapping
- Test feed to see available columns
- Map SKU/EAN columns for product matching
- Map stock quantity columns
- Auto-detection of delimiters
3. Product Settings
- Individual Products: Enable YoCo backorder in product edit page
- Variable Products: Apply to all variations or configure individually
- Bulk Edit: Mass enable/disable YoCo backorder
Usage
Manual Operations
- Test Feed: Validate supplier CSV feeds before configuration
- Manual Sync: Trigger immediate synchronization per supplier
- Stock Check: Refresh supplier stock for individual products
Automatic Operations
- Scheduled Sync: Configure update frequency (1-24 times per day)
- Custom Times: Set specific sync times per supplier
- Cron Integration: WordPress cron for automated execution
Stock Logic
- Product has Jokasport stock → Use default delivery time
- No Jokasport stock → Check supplier availability
- Supplier has stock → Set backorder with supplier delivery time
- No supplier stock → Leave out of stock
Database Structure
yoco_supplier_settings
- Supplier configuration per
pa_xcore_suppliersterm - Feed URLs, mapping, schedules, delivery times
yoco_supplier_stock
- Cached supplier stock per product
- SKU/EAN matching, stock quantities, availability status
yoco_sync_logs
- Comprehensive sync history
- Status tracking, error logging, performance metrics
Technical Details
Requirements
- WordPress 5.0+
- WooCommerce 5.0+
- PHP 7.4+
- Existing
pa_xcore_supplierstaxonomy
Key Classes
YoCo_Supplier: Supplier management and configurationYoCo_Product: Product-level settings and stock displayYoCo_Sync: Feed processing and synchronizationYoCo_Admin: Admin interface and AJAX handlers
Product Meta Fields
_yoco_backorder_enabled: Enable/disable YoCo for product_yoco_supplier_stock: Cached supplier stock data_yoco_last_updated: Last sync timestampean_13: EAN for product matching (existing field)
File Structure
yoco-backordersystem/
├── yoco-backordersystem.php # Main plugin file
├── includes/
│ ├── class-yoco-install.php # Installation & database
│ ├── class-yoco-admin.php # Admin interface
│ ├── class-yoco-supplier.php # Supplier management
│ ├── class-yoco-product.php # Product functionality
│ └── class-yoco-sync.php # Synchronization
├── templates/admin/
│ ├── dashboard.php # Main dashboard
│ ├── suppliers.php # Supplier configuration
│ ├── sync-logs.php # Sync history
│ └── settings.php # Global settings
└── assets/
├── css/admin.css # Admin styling
└── js/admin.js # Admin JavaScript
Development
API Endpoints (AJAX)
yoco_test_supplier_feed: Test CSV feed validityyoco_sync_supplier: Manual supplier synchronizationyoco_check_product_stock: Refresh product stock
Hooks & Filters
yoco_before_init: Before plugin initializationyoco_init: After plugin initializationyoco_installed: After plugin installationyoco_deactivated: After plugin deactivation
Extensibility
- Filter hooks for custom delivery time logic
- Action hooks for sync completion events
- Database structure allows custom mapping configurations
Troubleshooting
Common Issues
- Supplier taxonomy missing: Ensure
pa_xcore_suppliersexists - Feed parsing errors: Check CSV delimiter and format
- No products syncing: Verify YoCo is enabled on products
- Sync failures: Check feed URL accessibility and format
Debug Mode
Enable in YoCo Backorder → Settings for detailed logging.
Log Analysis
View detailed sync logs in YoCo Backorder → Sync Logs with error details and performance metrics.
Support
For issues specific to Jokasport implementation:
- Check existing supplier configuration in WooCommerce attributes
- Verify product has correct
pa_xcore_suppliersassignment - Ensure EAN13 fields are populated for product matching
Version History
1.0.0
- Initial release
- Basic supplier management
- CSV feed processing
- Manual synchronization
- Product-level configuration
- Comprehensive admin interface
License
GPL v2 or later
Author
YourCoding
Website: https://yourcoding.nl
Plugin URI: https://github.com/yourcodingNL/yoco-backorderystem