HgE: Shipping Zones for FAN Courier Romania

Changelog

1.0.12 – 2026-03-02

  • New: “Restaurează AWB” button in order metabox — when an AWB was deleted from the order but still exists in FAN Courier SelfAWB, admins can restore it with one click
  • New: AWB restoration verifies existence in FAN Courier borderou before restoring, preventing restoration of truly deleted AWBs
  • New: “AWB Restaurat” history entry with precise timestamp for audit trail
  • Improved: Grace period now protects both generated and restored AWBs from automatic deletion (2-hour window)
  • Improved: All history scans (metabox, order list columns, AJAX handlers) recognize “AWB Restaurat” as a valid active AWB state

1.0.11 – 2026-03-02

  • Fixed: Grace period now uses precise microtime() timestamp from AWB history instead of date-only META_AWB_DATE (which resolved to midnight and always exceeded the 2-hour window)
  • Fixed: force_delete_awb_from_order() now uses the actual AWB generation date when checking the borderou, preventing false deletions of AWBs generated on previous days
  • Fixed: Async AWB restoration no longer triggers for orders that have no “AWB Generat” entry in history, eliminating unnecessary log spam and Action Scheduler tasks
  • Fixed: Fatal error when class-hgezlpfcr-integrity.php is missing — integrity class loading is now conditional with file_exists() checks

1.0.10 – 2026-02-27

  • Fixed: Freshly generated AWBs were incorrectly deleted when not yet visible in the FAN Courier Borderou (race condition)
  • New: 2-hour grace period — AWBs generated within the last 2 hours are protected from Borderou-based deletion
  • Fixed: Metabox auto-cleanup no longer deletes a newly regenerated AWB based on a stale “AWB Șters” history entry from the previous AWB
  • Improved: Sync verification now shows informative “grace period” message instead of deleting recent AWBs

1.0.9 – 2026-02-21

  • Security: Added file integrity monitoring system (SHA-256 hash verification)
  • New: Hourly WP-Cron check detects modified, deleted, or suspicious files in plugin directory
  • New: Admin email alerts and persistent dashboard warning on integrity check failure
  • New: Automatic hash regeneration on plugin updates (WordPress upgrader, FTP, or version change)
  • New: Detection of unexpected PHP files that may indicate compromise

1.0.8 – 2026-02-19

  • Security: Enabled SSL certificate verification on all eCommerce API calls (post_form() and generate_auth_token())
  • Previously sslverify was set to false for ecommerce.fancourier.ro endpoints; now consistently true across all API methods
  • Performance: Optimized check_awb_exists() — borderou responses are now cached per date (5 min transient), reducing API calls from up to 4 per check to at most 1
  • Performance: Multiple AWB existence checks for the same date now use a single cached API call with O(1) lookup instead of iterating all entries
  • Performance: Removed excessive per-entry debug logging from borderou checks

1.0.7 – 2026-02-06

  • Fixed: Meta boxes not displaying on HPOS order edit pages
  • Fixed: JavaScript not loading on HPOS order screens (Generate AWB, Verify AWB, Download PDF buttons)
  • Added: HPOS-compatible helper methods get_order_from_post_or_order() and get_order_id_from_post_or_order()
  • Added: Robust screen detection for both legacy (shop_order) and HPOS (woocommerce_page_wc-orders) screens
  • Improved: enqueue_admin_scripts() now correctly loads scripts on HPOS order edit pages
  • Improved: All meta box render callbacks now handle both WP_Post (legacy) and WC_Order (HPOS) objects
  • Improved: Meta box registration uses multiple hooks for maximum compatibility
  • Improved: Added debug logging for meta box registration and script enqueuing
  • Compatibility: Full HPOS support for all order page functionality (AWB generation, verification, PDF download)

1.0.6 – 2026-01-27

  • Added: Formal HPOS (High-Performance Order Storage) compatibility declaration
  • Fixed: AWB history not saving correctly when HPOS is enabled
  • Fixed: Order meta data caching issues with HPOS
  • Improved: log_awb_action() now clears order cache before reading to ensure fresh data
  • Improved: All AWB read operations use helper functions for legacy meta key compatibility
  • Compatibility: Tested with WooCommerce 9.7 HPOS mode

1.0.5 – 2025-12-07

  • Enhanced: Logger class now supports all PSR-3 log levels (emergency, alert, critical, error, warning, notice, info, debug)
  • Added: New logging methods – warning(), critical(), alert(), emergency(), notice(), debug(), info()
  • Improved: Centralized sensitive data sanitization in Logger (passwords, API keys, tokens, secrets)
  • Improved: warning() and error() levels are always logged regardless of debug setting
  • Code Quality: Better code organization with private helper methods in Logger class
  • Documentation: Added comprehensive PHPDoc comments to Logger class

1.0.4 – 2025-12-07

  • Code Quality: Standardized all meta keys to use _hgezlpfcr_ prefix
  • Backward Compatibility: Added fallback reading for legacy _fc_ meta keys
  • Added: Helper methods get_awb_number(), get_awb_status(), get_awb_history(), get_awb_date() with dual-key support
  • Added: Transient constants for AWB locks and cache with proper prefixing
  • Improved: Healthcheck cleans both new and legacy lock transients
  • Security: All new orders use standardized prefixed keys

1.0.3 – 2024-10-22

  • More detailed logging for debugging through comprehensive error handling
  • Full synchronization between Standard and PRO plugin
  • Romanian translation

1.0.2 – 2024-10-18

  • Security: Fixed XSS vulnerability in cookie handling
  • Security: Improved SQL query sanitization in lock cleanup
  • Security: Enhanced data validation for all user inputs
  • Removed: FANBox locker delivery functionality (Standard delivery only)
  • Fixed: Debug mode forced to disabled in production
  • Improved: Better error handling for API timeouts
  • Improved: Enhanced logging with sensitive data masking
  • Updated: WordPress 6.7 compatibility tested
  • Updated: WooCommerce 9.7 compatibility tested

1.0.1 – 2024-09-15

  • Added: Automatic AWB generation on order status change
  • Added: Action Scheduler integration for async operations
  • Added: Health Check dashboard with diagnostic tools
  • Added: AWB deletion verification with FAN Courier API
  • Improved: Retry logic with exponential backoff
  • Improved: Better error messages and logging
  • Fixed: Timezone issues with AWB generation date
  • Fixed: Meta data persistence in HPOS mode

1.0.0 – 2024-08-01

  • Initial release
  • FAN Courier Standard shipping method
  • Automatic AWB generation
  • PDF label download
  • Real-time tracking synchronization
  • Dynamic and fixed shipping rates
  • COD support with bank account integration
  • WooCommerce Shipping Zones integration
  • AJAX-powered admin interface
  • Comprehensive logging system

Plugin Website
Visit website

Author
hge321
Version:
1.0.12
Last Updated
March 2, 2026
Requires
WordPress 5.0
Tested Up To
WordPress 6.9.1
Requires PHP
8.1

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.