To check the condition whether the module is installed or uninstalled to display particular block in tpl file
{if Module::isInstalled("productcomments")}
<div>This block is to be displayed only when module is installed</div>
{/if}
{if Module::isInstalled("productcomments")}
<div>This block is to be displayed only when module is installed</div>
{/if}
No comments:
Post a Comment