PrestaShop Theme does not provide any functionality to delete the order. It does not allow you to remove Test order or Old order.

Here, There are 2 ways to delete order 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 Web design Themes platform on Best PrestaShop Themes, Responsive BigCommerce Themes, Shopify Themes, OpenCart Themes, WooCommerce Themes.

METHOD 1:

You can delete the order by changing the URL. Follow the bellow step to delete the order.

Step 1:

Go to Prestashop Admin panel >> Orders.

How to delete order in PrestaShop

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 “delete” button display in the order page.

But, If you don’t need “delete” button, Then please remove this $this->addRowAction(‘delete’); line.

Get other Blogs and Services:

How To Edit Footer In PrestaShop theme

Add Product on PrestaShop theme

PSD To HTML Conversion Services

PSD To BigCommerce Convert

PSD To WooCommerce Conversion Services

Spread the love

Leave a comment

Your email address will not be published. Required fields are marked *