Skip to content

Commit

Permalink
catalogsearch
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Dec 11, 2020
1 parent dfef415 commit 28b95e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/appfront/modules/Catalogsearch/block/index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ public function getLastData()
return [
'searchText' => $this->_searchText,
'title' => $this->_title,
'name' => Yii::$service->store->getStoreAttrVal($this->_category['name'], 'name'),
'image' => $this->_category['image'] ? Yii::$service->category->image->getUrl($this->_category['image']) : '',
'description' => Yii::$service->store->getStoreAttrVal($this->_category['description'], 'description'),
// 'name' => Yii::$service->store->getStoreAttrVal($this->_category['name'], 'name'),
// 'image' => $this->_category['image'] ? Yii::$service->category->image->getUrl($this->_category['image']) : '',
// 'description' => Yii::$service->store->getStoreAttrVal($this->_category['description'], 'description'),
'products' => $products,
'query_item' => $this->getQueryItem(),
'product_page' => $this->getProductPage(),
Expand Down
6 changes: 3 additions & 3 deletions app/apphtml5/modules/Catalogsearch/block/index/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ public function getLastData()
return [
'searchText' => $this->_searchText,
'title' => $this->_title,
'name' => Yii::$service->store->getStoreAttrVal($this->_category['name'], 'name'),
'image' => $this->_category['image'] ? Yii::$service->category->image->getUrl($this->_category['image']) : '',
'description' => Yii::$service->store->getStoreAttrVal($this->_category['description'], 'description'),
// 'name' => Yii::$service->store->getStoreAttrVal($this->_category['name'], 'name'),
// 'image' => $this->_category['image'] ? Yii::$service->category->image->getUrl($this->_category['image']) : '',
// 'description' => Yii::$service->store->getStoreAttrVal($this->_category['description'], 'description'),
'products' => $products,
'query_item' => $this->getQueryItem(),
'product_page' => $this->getProductPage(),
Expand Down

0 comments on commit 28b95e2

Please sign in to comment.