Я хочу добавить новый столбец в контроллер администратора, но я хочу, чтобы этот столбец был ссылкой на конкретный заказ, а не только на идентификатор. До сих пор у меня есть следующее:Prestashop - добавить столбец со ссылкой на заказ в backoffice
<?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');
}
}