1
我想向管理控制器添加新列,但我希望此列成爲特定訂單的鏈接而不僅僅是ID。到目前爲止,我有這個:Prestashop - 添加包含後臺訂單鏈接的列
<?php
class AdminDnDPaymentsController extends ModuleAdminController {
public function __construct() {
$this->table = 'dnd_payments';
$this->className = 'DnDPayment';
$this->fields_list = array(
'id_dnd_payments' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
'id_order' => array('title' => $this->l('Order'), 'align' => 'center', 'width' => 80),
'bank' => array('title' => $this->l('Bank'), 'width' => 120),
'payer' => array('title' => $this->l('Payer name'), 'width' => 140),
'amount' => array('title' => $this->l('Amount'), 'width' => 80),
'reference' => array('title' => $this->l('Reference'), 'width' => 120),
'date_add' => array('title' => $this->l('Date add'), 'type' => 'date'),
);
$this->bootstrap = true;
parent::__construct();
//$this->addRowAction('view');
//$this->addRowAction('edit');
$this->addRowAction('delete');
}
}