[+] BO : Tracking page header toolbar
This commit is contained in:
@@ -23,8 +23,4 @@
|
|||||||
* International Registered Trademark & Property of PrestaShop SA
|
* International Registered Trademark & Property of PrestaShop SA
|
||||||
*}
|
*}
|
||||||
|
|
||||||
{extends file="helpers/list/list_header.tpl"}
|
{extends file="helpers/list/list_header.tpl"}
|
||||||
|
|
||||||
{block name="override_header"}
|
|
||||||
<h3>{$sub_title}</h3>
|
|
||||||
{/block}
|
|
||||||
@@ -75,6 +75,12 @@ class AdminTrackingControllerCore extends AdminController
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function initPageHeaderToolbar()
|
||||||
|
{
|
||||||
|
$this->page_header_toolbar_title = $this->l('Monitoring');
|
||||||
|
parent::initPageHeaderToolbar();
|
||||||
|
}
|
||||||
|
|
||||||
public function getCustomListCategoriesEmpty()
|
public function getCustomListCategoriesEmpty()
|
||||||
{
|
{
|
||||||
$this->table = 'category';
|
$this->table = 'category';
|
||||||
@@ -107,9 +113,7 @@ class AdminTrackingControllerCore extends AdminController
|
|||||||
FROM `'._DB_PREFIX_.'category_product` cp
|
FROM `'._DB_PREFIX_.'category_product` cp
|
||||||
)
|
)
|
||||||
AND a.`id_category` != '.(int)Category::getTopCategory()->id;
|
AND a.`id_category` != '.(int)Category::getTopCategory()->id;
|
||||||
|
$this->toolbar_title = $this->l('List of empty categories:');
|
||||||
$this->tpl_list_vars = array('sub_title' => $this->l('List of empty categories:'));
|
|
||||||
|
|
||||||
return $this->renderList();
|
return $this->renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -152,9 +156,7 @@ class AdminTrackingControllerCore extends AdminController
|
|||||||
)
|
)
|
||||||
AND IFNULL(stock.quantity, 0) <= 0
|
AND IFNULL(stock.quantity, 0) <= 0
|
||||||
)';
|
)';
|
||||||
|
$this->toolbar_title = $this->l('List of products with attributes but without available quantities for sale:');
|
||||||
$this->tpl_list_vars = array('sub_title' => $this->l('List of products with attributes but without available quantities for sale:'));
|
|
||||||
|
|
||||||
return $this->renderList();
|
return $this->renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -197,8 +199,7 @@ class AdminTrackingControllerCore extends AdminController
|
|||||||
AND IFNULL(stock.quantity, 0) <= 0
|
AND IFNULL(stock.quantity, 0) <= 0
|
||||||
)';
|
)';
|
||||||
|
|
||||||
$this->tpl_list_vars = array('sub_title' => $this->l('List of products without attributes and without available quantities for sale:'));
|
$this->toolbar_title = $this->l('List of products without attributes and without available quantities for sale:');
|
||||||
|
|
||||||
return $this->renderList();
|
return $this->renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -212,7 +213,6 @@ class AdminTrackingControllerCore extends AdminController
|
|||||||
$this->_orderBy = 'id_product';
|
$this->_orderBy = 'id_product';
|
||||||
$this->_orderWay = 'DESC';
|
$this->_orderWay = 'DESC';
|
||||||
$this->_filter = 'AND product_shop.`active` = 0';
|
$this->_filter = 'AND product_shop.`active` = 0';
|
||||||
$this->tpl_list_vars = array('sub_title' => $this->l('List of disabled products:'));
|
|
||||||
$this->show_toolbar = false;
|
$this->show_toolbar = false;
|
||||||
$this->_list_index = 'index.php?controller=AdminProducts';
|
$this->_list_index = 'index.php?controller=AdminProducts';
|
||||||
$this->_list_token = Tools::getAdminTokenLite('AdminProducts');
|
$this->_list_token = Tools::getAdminTokenLite('AdminProducts');
|
||||||
@@ -229,6 +229,7 @@ class AdminTrackingControllerCore extends AdminController
|
|||||||
$this->clearFilters();
|
$this->clearFilters();
|
||||||
|
|
||||||
$this->_join = Shop::addSqlAssociation('product', 'a');
|
$this->_join = Shop::addSqlAssociation('product', 'a');
|
||||||
|
$this->toolbar_title = $this->l('List of disabled products:');
|
||||||
return $this->renderList();
|
return $this->renderList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user