[*] BO : Carriers can now be sorted ascending or descending

This commit is contained in:
vChabot
2011-11-04 10:23:41 +00:00
parent 6093a3827b
commit 222c573ff0
3 changed files with 22 additions and 2 deletions
@@ -102,6 +102,11 @@ class AdminCarriersControllerCore extends AdminController
array('value' => Carrier::SORT_BY_POSITION, 'name' => $this->l('Position'))
);
$carrier_default_order = array(
array('value' => Carrier::SORT_BY_ASC, 'name' => $this->l('Ascending')),
array('value' => Carrier::SORT_BY_DESC, 'name' => $this->l('Descending'))
);
$this->options = array(
'general' => array(
'title' => $this->l('Carrier options'),
@@ -122,6 +127,14 @@ class AdminCarriersControllerCore extends AdminController
'identifier' => 'value',
'list' => $carrier_default_sort
),
'PS_CARRIER_DEFAULT_ORDER' => array(
'title' => $this->l('Carrier default order:'),
'desc' => $this->l('This default order will be available only on front-office'),
'cast' => 'intval',
'type' => 'select',
'identifier' => 'value',
'list' => $carrier_default_order
),
),
'submit' => array()
)