File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ public function __construct(
48
48
public function _toHtml (){
49
49
if (!$ this ->_tagHelper ->getGeneralConfig ('enabled ' )) return ;
50
50
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 "" ;
52
56
}
53
57
function getTagHelper (){
54
58
return $ this ->_tagHelper ;
Original file line number Diff line number Diff line change @@ -48,7 +48,11 @@ public function __construct(
48
48
public function _toHtml (){
49
49
if (!$ this ->_tagHelper ->getGeneralConfig ('enabled ' )) return ;
50
50
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 "" ;
52
56
}
53
57
function getTagHelper (){
54
58
return $ this ->_tagHelper ;
You can’t perform that action at this time.
0 commit comments