DeftCoders – Discount & Fee Rules for WooCommerce

Changelog

1.0.0

  • Initial release.
  • 2 rule types: Fee, Discount.
  • 5 action types: Fixed Fee, Percentage Fee, Fixed Discount, Percentage Discount, Tiered Discount.
  • 14 condition types: Cart Total, Cart Subtotal, Cart Quantity, Payment Method, Shipping Method, User Role, Product, Product Category, Day of Week, Time Range, Date Range, Country, State, Coupon Applied.
  • Per-rule settings: priority (1–9999), active/inactive status, stop-further-rules flag, optional cart label.
  • Stackable and non-stackable modes for discount rules.
  • Apply-to-cart and apply-to-products scope for percentage and tiered discounts.
  • Rules list: 8 dashboard stat cards, paginated table (10 per page), real-time name search, filter by condition type or rule type, drag-to-reorder priority, live status toggle, bulk activate/deactivate/delete/export.
  • Rule builder modal with dynamic action configuration panel and multi-condition support.
  • Rule Simulator: full cart scenario input (subtotal, quantity, payment, shipping, role, country, coupon, date, time) with per-rule match breakdown and cart summary.
  • Preview Mode: full rule evaluation on live carts with no fees or discounts applied.
  • Debug logging: daily log files in wp-content/uploads/wcdpdr-logs/, in-admin viewer with date selector, Clear All. Log directory .htaccess protected.
  • Import and export rules as JSON with per-rule validation and full field sanitisation.
  • Revenue analytics: tracks fee revenue and discount totals when orders reach processing or completed status; daily aggregate table; 8 stat cards on dashboard.
  • Frontend cart display: fee/discount lines, applied-rules area, “You saved X!” messages, total savings banner, tiered tier label, countdown timer for time-limited rules.
  • Custom fee messages displayed above the checkout form.
  • Built-in Documentation page inside the admin.
  • 3 pre-installed example rules (Inactive): Bulk Quantity Discount, Small Order Fee, Weekend Sale.
  • WooCommerce HPOS compatibility declared.
  • Clean uninstall: drops both tables, removes all options, transients, and log files. Multisite-aware.
  • Tax-aware subtotal calculation for inclusive and exclusive tax display settings.
  • 60-second transient cache for active rules, busted on any rule change.
  • i18n-ready with .pot file included.

Plugin Website
Visit website

Author
Rohit
Version:
1.0.0
Last Updated
March 15, 2026
Requires
WordPress 5.8
Tested Up To
WordPress 6.9.4
Requires PHP
7.4

Share Post

Join our newsletter.

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