Skip to content

v2.2.6 - Admin Panel Improvements and COD Block Statistics

Choose a tag to compare

@Druckermeister Druckermeister released this 17 Nov 08:57
· 7 commits to main since this release

What's New in v2.2.6

🎨 Admin Panel Improvements

Custom Order Status Creation

  • Restored the missing UI to create custom order statuses directly from the Order Status Mapping section
  • Simple input field and button to create new statuses on-the-fly
  • AJAX-powered creation with instant updates to status dropdowns
  • No more need to use external plugins for custom statuses!

Updated Descriptions

  • Clearer, more intuitive descriptions for order status mappings:
    • Successful status: "Orders with this status will be allowed for future COD payments"
    • Refused status: "Orders with this status will be blocked for future COD payments"

Simplified Settings

  • Removed the Notification Email field from Rating Settings for a cleaner interface

πŸ“Š COD Block Statistics Dashboard

Real-time Analytics
Track how often customers are blocked from using cash-on-delivery payment:

  • 4 Time Period Counters:

    • Today
    • Last 7 Days
    • Last 30 Days
    • All Time
  • Recent Blocks Table:

    • Shows last 10 blocked attempts
    • Displays timestamp, customer email, and rating
    • Helps identify patterns and problem customers
  • Automatic Data Management:

    • Block events tracked automatically during checkout
    • 90-day data retention policy
    • No performance impact on checkout process

πŸ”§ Technical Details

  • Block events stored in codguard_block_events WordPress option
  • Statistics calculated dynamically on settings page load
  • Code passes PHPStan level 5 static analysis
  • PSR-12 coding standards compliance (WordPress conventions)
  • Zero errors in code quality checks

πŸ“¦ Installation

  1. Download codguard-2.2.6.zip
  2. Go to WordPress Admin β†’ Plugins β†’ Add New β†’ Upload Plugin
  3. Upload the zip file and activate
  4. Configure your settings under WooCommerce β†’ CodGuard

πŸ”„ Upgrading from v2.2.5

This is a feature release with no breaking changes. Simply install and activate - all your settings will be preserved.


Full Changelog: v2.2.5...v2.2.6