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(
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 ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments