PrestaShop Theme does not provide any functionality to delete the order. It does not allow you to remove the Test order or Old order.
Here, There are 2 ways to delete orders without any external module. When you try these 2 methods, Please be careful. Otherwise, take a backup of Your Database.
Webibazaar Templates provides many eCommerce Premium Website Templates platforms on Best PrestaShop Themes, BigCommerce Themes, Shopify Themes, OpenCart Themes, WooCommerce Themes.
Here we go with these methods!
METHOD 1:
You can delete the order by changing the URL. Follow the below step to delete the order.
Step 1:
Go to Prestashop Admin panel >> Orders.
Step 2:
Click on the View button, which you want to delete it.
Step 3:
After clicking on View button, You can see URL in a browser like this:
yoursitename/admin_dev/index.php?controller=AdminOrders&id_order=5&token=280682ec93d014134a16e75781299cfd&vieworder=1
You need to simply replace the “vieworder” with “deleteorder”. For example bottom URL:
yoursitename/admin_dev/index.php?controller=AdminOrders&id_order=5&token=280682ec93d014134a16e75781299cfd&deleteorder=1
Press enter, The order will delete.
Related Read: How to manage the Faceted Search module in PrestaShop 1.7
METHOD 2:
Another way to delete the order is to add the “delete button” in the order section. Follow the below step to add the delete button.
- 1. Go to controllers/admin/AdminOrdersController.php
- 2. Add $this->addRowAction(‘delete’); line. You can see in the below image where to put this line.
3. Save this page and refresh the order page in the admin side. You can see the “delete” button display on the order page.
But, If you don’t need “delete” button, Then please remove this $this->addRowAction(‘delete’); line.
Hope you will understand all these steps to Delete order in PrestaShop.
Get other Blogs and Services:
How To Edit Footer In PrestaShop theme
Add Product on PrestaShop theme