[+] BO : Page header toolbar
This commit is contained in:
@@ -50,6 +50,18 @@ class AdminRangePriceControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Price ranges');
|
||||||
|
$this->page_header_toolbar_btn['new_price_range'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addrange_price&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new price range'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
$currency = $this->context->currency;
|
$currency = $this->context->currency;
|
||||||
|
|||||||
@@ -50,6 +50,18 @@ class AdminRangeWeightControllerCore extends AdminController
|
|||||||
parent::__construct();
|
parent::__construct();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Weight ranges');
|
||||||
|
$this->page_header_toolbar_btn['new_weight_range'] = array(
|
||||||
|
'href' => self::$currentIndex.'&addrange_weight&token='.$this->token,
|
||||||
|
'desc' => $this->l('Add new weight range'),
|
||||||
|
'icon' => 'process-icon-new'
|
||||||
|
);
|
||||||
|
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function renderForm()
|
public function renderForm()
|
||||||
{
|
{
|
||||||
$carriers = Carrier::getCarriers($this->context->language->id, true, false, false, null, Carrier::PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE);
|
$carriers = Carrier::getCarriers($this->context->language->id, true, false, false, null, Carrier::PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE);
|
||||||
|
|||||||
Reference in New Issue
Block a user