ZT Bulk Order Delete Pro

Official Release Changelog
2Versions
4Implemented
4Improved
3Fixed
2Security
Implemented Improved Fixed Security
Version 2.0 29-09-2026 (10:44 PM) Latest
Implemented 3
  • In-DOM Center-Screen Modal: Integrated a custom center-screen confirmation dialog replacing the default browser popup, eliminating "localhost says" alerts and preventing browser popup suppression.
  • Dynamic Selected Orders Counter: Embedded a live counter pill inside the dialog that displays the exact count of orders queued for deletion.
  • Empty Selection Warning Modal: Added a dedicated warning prompt that alerts administrators when the delete button is clicked without selecting any orders.
Improved 4
  • Centered Action Button Alignment: Positioned both Cancel and Yes Delete buttons side-by-side in the center bottom of the modal for optimal ergonomics.
  • Active Submission State Guard: Added an animated loading spinner (Deleting...) that disables the confirm button upon click to eliminate accidental duplicate requests.
  • Cascade Database Purge: Expanded model deletion logic across 11 associated tables including order_voucher, customer_transaction, customer_reward, coupon_history, and recurring profiles to prevent orphaned database records.
  • Modern PHP & Theme Compatibility: Upgraded codebase syntax to support PHP 7.4 through PHP 8.5 with strict null-safety, and validated across OpenCart Default, Journal 2, and Journal 3 themes.
Fixed 2
  • Token Session Invalidation Bug: Fixed OpenCart HTML entity encoding (& vs &) on user token query strings that previously triggered "Invalid token session. Please login again." logouts.
  • Form Submission Isolation: Decoupled order deletion submission logic from standard bulk actions to ensure Print Invoice and Print Shipping List buttons remain completely undisturbed.
Security 2
  • Strict Permission Verification: Added administrative access rights verification ensuring only users with modify privileges on sale/order can initiate bulk deletions.
  • Strict Type Sanitization: Enforced explicit integer casting (int)$order_id on all order identifiers across database deletion queries to safeguard against SQL manipulation.
Version 1.0 01-01-2020 (12:00 AM) Initial Release
Implemented 1
  • Basic Bulk Order Deletion: Added ability to select multiple orders from the admin order list and trigger bulk removal.
Fixed 1
  • Legacy Order Removal: Provided basic deletion queries for core order tables in older OpenCart setups.