Skip to content

Commit 61625be

Browse files
committed
updated system.xml
1 parent b0c97a2 commit 61625be

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

Block/Tag/Product/Sidebar.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ public function __construct(
4848
public function _toHtml(){
4949
if(!$this->_tagHelper->getGeneralConfig('enabled')) return;
5050
if(!$this->_tagHelper->getGeneralConfig('enable_tag_sidebar')) return;
51-
return parent::_toHtml();
51+
$_tag_collection = $this->getTagCollection();
52+
if($_tag_collection && $_tag_collection->getSize()){
53+
return parent::_toHtml();
54+
}
55+
return "";
5256
}
5357
function getTagHelper(){
5458
return $this->_tagHelper;

Block/Tag/Product/TagProduct.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ public function __construct(
4848
public function _toHtml(){
4949
if(!$this->_tagHelper->getGeneralConfig('enabled')) return;
5050
if(!$this->_tagHelper->getGeneralConfig('enable_tag_on_product')) return;
51-
return parent::_toHtml();
51+
$_tag_collection = $this->getTagCollection();
52+
if($_tag_collection && $_tag_collection->getSize()){
53+
return parent::_toHtml();
54+
}
55+
return "";
5256
}
5357
function getTagHelper(){
5458
return $this->_tagHelper;

0 commit comments

Comments
 (0)