// Refactor helper list + fixs

This commit is contained in:
Kevin Granger
2013-07-02 18:55:43 +02:00
parent 85da11181d
commit 0ad4b44866
15 changed files with 781 additions and 564 deletions
@@ -39,11 +39,11 @@ class AdminCartRulesControllerCore extends AdminController
$this->bulk_actions = array('delete' => array('text' => $this->l('Delete selected'), 'confirm' => $this->l('Delete selected items?')));
$this->fields_list = array(
'id_cart_rule' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
'id_cart_rule' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 40),
'name' => array('title' => $this->l('Name')),
'priority' => array('title' => $this->l('Priority'), 'width' => 25),
'priority' => array('title' => $this->l('Priority'), 'width' => 40),
'code' => array('title' => $this->l('Code')),
'quantity' => array('title' => $this->l('Quantity'), 'width' => 25),
'quantity' => array('title' => $this->l('Quantity'), 'width' => 40),
'date_to' => array('title' => $this->l('Until')),
'active' => array('title' => $this->l('Status'), 'align' => 'center', 'active' => 'status', 'type' => 'bool', 'orderby' => false),
);
@@ -58,6 +58,7 @@ class AdminProductsControllerCore extends AdminController
public function __construct()
{
$this->bootstrap = true;
$this->table = 'product';
$this->className = 'Product';
$this->lang = true;
@@ -201,7 +202,7 @@ class AdminProductsControllerCore extends AdminController
$this->fields_list['id_product'] = array(
'title' => $this->l('ID'),
'align' => 'center',
'width' => 20
'width' => 40
);
$this->fields_list['image'] = array(
'title' => $this->l('Photo'),
@@ -255,7 +256,7 @@ class AdminProductsControllerCore extends AdminController
'align' => 'right',
'filter_key' => 'sav!quantity',
'orderby' => true,
'hint' => $this->l('This is the quantity available in the current shop/group.'),
//'hint' => $this->l('This is the quantity available in the current shop/group.'),
);
$this->fields_list['active'] = array(
'title' => $this->l('Status'),