Menghapus order pada Prestashop

Artikel berikut ini saya temukan saat saya sedang mencari-cari cara bagaimana cara menghapus order dari halaman admin prestashop.

Saya membiarkan artikel ini tetap pada bahasa aslinya agar brader sister semua bisa memahami panduan yang ada pada tutorial ini dengan baik. Cekdisaut brader sist.


You probably found this blog post because you’re wondering the same thing I was this morning… the ability to delete an order is a very basic function and yet, I cannot find the delete button!

Well, the delete button is is not a permission, but instead an option you must turn on by modifying the code. WTF!?! A lot of people that don’t speak PHP will not be happy.

Anyway, the delete button will appear at the bottom of your order list by adding the following line of code in the construct of the AdminOrders class.

  1. In the renamed admin directory of your store, go to tabs/AdminOrders.php.
  2. Around line 28 below $this->colorOnBackground = true; 

  3. 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;


Semoga membantu pencerahan buat bradersist semua..

sumber: http://nickbartlett.com/wordpress/how-to-delete-an-order-with-prestashop/

Comments

Popular posts from this blog

Windows XP SP3 Product Key

SEF pada Virtuemart

Tentang google page rank