|
...
|
...
|
@@ -778,6 +778,14 @@ class BTemplateLogic extends BaseLogic |
|
|
|
$productCategory = $this->getCategoryList((new Category()),1);
|
|
|
|
$newCategory = $this->getCategoryList((new NewsCategory()));
|
|
|
|
$blogCategory = $this->getCategoryList((new BlogCategory()));
|
|
|
|
$productTypeModel = new ProductType();
|
|
|
|
$productTypeList = $productTypeModel->list(['project_id'=>$this->user['project_id']],'id',['id','name']);
|
|
|
|
if(!empty($productTypeList)){
|
|
|
|
foreach ($productTypeList as $items){
|
|
|
|
$items['id'] = 'product_type_'.$items['id'];
|
|
|
|
$data["products"]["category"][] =$items;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (!empty($productCategory)){
|
|
|
|
foreach ($productCategory as $item){$data["products"]["category"][] =$item;}
|
|
|
|
}
|
...
|
...
|
|