Plugin Installed or not

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 năm cách đây
Hi,

I want to check in "ProductTemplate.VariantsInGrid.cshtml" whether my Plugin is installed or not. Please help out from this issue as soon as possible. Thanks in advance.
11 năm cách đây
Hi,

var pluginFinder = EngineContext.Current.Resolve<IPluginFinder>();
var pluginDescriptor = pluginFinder.GetPluginDescriptorBySystemName("PluginName");
if (pluginDescriptor != null)
{
    <span>plugin installed!</span>
}
11 năm cách đây
Hey...

Really thanks.. It's working...
4 năm cách đây
It does not work in nopCommerce 4.20.

How can I do?

Thanks
4 năm cách đây
var _pluginService = EngineContext.Current.Resolve<IPluginService>();
var plugin = _pluginService.GetPluginDescriptorBySystemName < IPlugin("Group.Name", LoadPluginsMode.All); // Plugin Name
if (plugin != null)
{
.....
}
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.