How To Delete Test Order In Prestashop


Well if you're using Prestashop, you probably need this guide because standard or clean install Prestashop didn't have any button or function to delete order in the Back Office.

Although, lucky for you Prestashop already have the build in "Delete" button in it. Now we just need to activate it first.

How To

  1. Go to your Prestashop root directory and find AdminOrders.php
    eg: /root/admin/tabs/AdminOrders.php
  2. Open it with notepad or any other software that you use to edit php files.
  3. Add $this->delete = true; below $this->colorOnBackground = true;.
    eg:-
    28
    29
    30
    31
    32
    33
    34
    35
    36
    class AdminOrders extends AdminTab
    {
     public function __construct()
     {
       $this->table = 'order';
       $this->className = 'Order';
       $this->view = 'noActionColumn';
      $this->colorOnBackground = true;
      $this->delete = true;
  4. Save it and the "Delete" button now appear in the Order page.
*tested on prestashop 1.4.3.0
Share on Google Plus

About Hypezar

Average Otaku

0 comments :

Post a Comment