Delete Orders: setup and help

Quick start

  1. Upload and install the module ZIP in Modules > Module Manager.
  2. Open Delete Orders > Configure.
  3. Check Enable and leave Require confirmation on, then click Save.
  4. On a backed-up test shop, open a disposable order and find the Delete Order panel.
  5. Click Move to Trash and confirm on the module confirmation page.
  6. Open Deleted Orders and confirm the audit row, then verify that the original test order is absent.

Requires PrestaShop 1.6 or later and PHP 7.1 or later. The orders table and module trash table must both use InnoDB.

Setup manual

Installation and first configuration

  1. Upload and install the module ZIP in Modules > Module Manager.
  2. Open Delete Orders > Configure.
  3. Check Enable and leave Require confirmation on, then click Save.
  4. On a backed-up test shop, open a disposable order and find the Delete Order panel.
  5. Click Move to Trash and confirm on the module confirmation page.
  6. Open Deleted Orders and confirm the audit row, then verify that the original test order is absent.

Delete Orders Settings

Open Modules > Module Manager > Delete Orders > Configure. In Delete Orders Settings, both options default to Yes.

Setting Default Use
Enable Yes Enable order removal and show the delete panel. Set No to block order removal and hide the panel.
Require confirmation Yes Require a confirmation step on the module page before order removal. Keep it enabled for normal use.

Click Save. The server checks Enable and Require confirmation before removing an order, including requests sent directly to the admin action. Order removal requires a POST request, a valid admin token, delete permission and authorization for the order. Disabling confirmation skips the extra confirmation step when using the panel button.

Move a test order to trash

Use a backed-up test shop for your first check. Open a disposable order detail page. The module renders through displayAdminOrderMain on newer order pages and displayAdminOrder for the legacy layout. Find Delete Order, click Move to Trash, and confirm if prompted.

For an existing order, the action attempts to save an audit record and delete the original order. It does not keep a complete restorable copy in separate storage.

The module checks the audit insert, order deletion and transaction commit, and reports success only after the commit succeeds. It requires InnoDB for the orders and trash tables and attempts a rollback if an operation fails. After a test, check that the original order is gone and that the trash row exists.

The module makes no payment-provider refund call and sends no customer notification itself. It does not reverse payments or provide a full accounting reversal. Keep a database backup if you need recovery.

Deleted Orders list

Open Deleted Orders in the module menu. You can inspect and filter these columns:

Column Meaning
ID Trash record ID.
Order ID Original order ID.
Reference Original order reference.
Deleted By (Employee ID) Employee recorded for the action.
Date Deleted Timestamp recorded for the action.

The audit snapshot contains id_order, reference, id_customer, total_paid from the tax-inclusive order total, date_add, and current_state. It does not include all order lines, addresses, payment records, or the data needed for complete restoration. There is no restore action.

Use a row's Delete action to permanently remove that audit record, or select rows and use Permanently delete selected to remove them together. Both actions require a valid admin token, delete permission and authorization for all shops. They remove audit records, not additional orders.

To inspect recent records with a read-only query, replace ps_ with your database prefix:

SELECT id_trash, id_order, order_reference, deleted_by, date_deleted
FROM ps_mprdeleteorders_trash
ORDER BY date_deleted DESC
LIMIT 50;

The table stores order_data as LONGTEXT, an order reference up to 16 characters, and an index on id_order.

Integrity checks and troubleshooting

The module's integrity page checks feature enablement, confirmation, the trash table, backlog, and missing reference or payload data. It offers repair actions to enable the feature, enable confirmation, or recreate a missing trash table. Recreating the table does not recover deleted audit records or orders.

If the panel is absent, check Enable, the order ID, hook rendering, module installation, and employee access to the module page. If the list or action fails, check the trash table and database errors. Keep access to this admin page limited to employees who should remove orders. The action checks delete permission and whether the employee may modify the selected order. If removal fails, also check confirmation, the admin token and InnoDB storage for both the orders and trash tables.

After a test, verify the actual order and audit row. Audit insertion and order deletion run in one transaction; a failure triggers a rollback attempt. Use module diagnostics and PrestaShop logs to investigate failures, including rollback failures.

The module has no storefront output. Your verification happens in the Back Office and database.

Button customization

The button uses views/templates/hook/delete-button.tpl. It receives mprdelo_trash_url and mprdelo_id_order. Keep the POST form, the hidden trash_order field and the generated admin URL when customizing it. The server handles the confirmation step with views/templates/admin/confirm-trash.tpl.

Disable or uninstall

Set Enable to No and save to block order removal and hide the order-page panel. Uninstall from Module Manager to remove module settings and menu entries. Uninstall retains the trash table, as stated in the confirmation prompt. Back up the table if you need the audit history. Uninstall does not restore deleted orders.

Compatibility

Requires PrestaShop 1.6 or later and PHP 7.1 or later. The orders table and module trash table must both use InnoDB.

Reference screenshots

Delete Orders, Order delete button

Delete Orders, Deleted orders trash

Delete Orders, Clear order trash

Questions

No questions about this module yet

Ask anything about installation, compatibility or setup. Answers appear here.

Known Issues

5

Deleting orders doesn't restore product stock quantities

Open

When an order is deleted, the stock that was decremented during the order is not restored, causing inventory discrepancies.

Resolution note

Stock quantities are now restored to their pre-order levels when an order is deleted, with a confirmation dialog showing the stock changes.

Administration labels remained in English

ResolvedUpdated:
Fixed in: 1.0.22
Some settings and short administration labels did not use the available translations.

Order trash installation check failed

ResolvedUpdated:
Fixed in: 1.0.18
Checking the order trash setup could report an incorrect failure or stop the page when debug mode was enabled.

Module refused to load on PHP 7.1

ResolvedUpdated:
Fixed in: 1.0.17
The module could reject PHP 7.1 even though that version was supported.

Damaged translated labels

ResolvedUpdated:
Fixed in: 1.0.16
Translated administration text could display repeated backslashes or incorrectly escaped characters.

Feature Requests

3

Implemented

Order trash and permanent deletion

Implemented
Remove unwanted orders from the back office using a trash stage before permanent deletion.

Installation checks and repair

Implemented
Check installation requirements and repair missing module infrastructure from the back office.

One-click module updates

Implemented
Check for and install module updates from the back office.

Changelog

v1.0.152026-09-25

  • Addedcomplete FR/DE/ES/IT/PL translations
Older releases

v1.2.02026-04-20

  • Addedadmin menu management via MenuInstaller for streamlined module setup

v1.1.02026-02-09

  • AddedPrestaShop 9 and Hummingbird theme compatibility
  • Fixedsoft-delete not releasing reserved stock quantities in PS 9 stock reservation service
  • Improvedtrash view with combined date range and order status filters
  • Addedbulk restore from trash with confirmation dialog and row count summary

v1.0.02025-05-28

  • Initialrelease of Delete Orders
  • InitialSoft delete: moves selected orders to trash rather than permanently removing them
  • InitialRestore from trash: recover accidentally deleted orders with a single click
  • InitialPermanent delete: irreversible removal available only from the trash view for safety
  • InitialAudit log recording who deleted or restored each order and when the action occurred
  • InitialDate range and order status filtering on both active order list and trash view

Demo

Test the full module before you buy

Buy a licence later and keep your settings.

  • Your 30-day demo Test it on your own shop for 30 days from the first install.
  • Ready demo shop Explore a ready demo shop in your browser.
  • No registration No account, email or store domain needed.
Launch demo shop

By downloading, you accept the demo terms and privacy policy.

By opening this demo you accept the demo terms and the privacy policy.

Loading...
Back to top