Jumprit's Knowledge

Jumprit's knowledge and references to share.

How to Delete Order in Prestashop —

To enable delete order in Prestashop, you need to edit the renamed admin directory of your store/tabs/AdminOrders.php

Then around line 28 below $this->colorOnBackground = true; , add $this->delete = true;
so it looks like this:

class AdminOrders extends AdminTab
{
public function __construct()
{
$this->table = ‘order’;
$this->className = ‘Order’;
$this->view = ‘noActionColumn’;
$this->colorOnBackground = true;
$this->delete = true;

Cheers..!! 😎  

————————————————————————————————————————
Or… another way to do it is change “vieworder” to “deleteorder” at your address bar in back office, after clicking the order you want to delete. Then press enter.
example:

http://mysite.com/admin/index.php?tab=AdminOrders&id_order=1&vieworder;&token;=f62930bu9214d96112339×567c0e9kq

into:

http://mysite.com/admin/index.php?tab=AdminOrders&id_order=1&deleteorder;&token;=f62930bu9214d96112339×567c0e9kq

then press enter. 😛


Categorised as: Prestashop



Leave a Reply