nopCommerce 4.10 - Plugin un-installed and called in plugin service.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 anni tempo fa
nopCommerce-4.10

I override few nopCommerce default service in my plugin.
My plugin is un-installed.

1. On application restart, I get debug point on un-installed plugin's DependencyRegister.cs file and it register all my overrided services.

2. When checking nopCommerce existing functionality, it's calling in overrided service even my plugin is un-installed.
5 anni tempo fa
See this response
5 anni tempo fa
Plugin's theme view engine and Action filters are registering even plugin is un-installed in nopCommerce 4.10.

Is anyone have idea about this?

I need to add condition everywhere for check plugin is installed or not by Plugin Finder service.
5 anni tempo fa
New York wrote:

This is not working in ConfigureServices of INopStartup under plugin.
5 anni tempo fa
New York wrote:

that not working in my case. see here
5 anni tempo fa
According to this post, tis is fixed in nopCommerce 4.20 current repo.
4 anni tempo fa
You could use in your plugin smth. like this before 4.20:


public virtual void Register(ContainerBuilder builder, ITypeFinder typeFinder, NopConfig config)
        {
            using (System.IO.StreamReader r = new System.IO.StreamReader("./App_Data/installedPlugins.json"))
            {
                string json = r.ReadToEnd();
                var items = JsonConvert.DeserializeObject<List<string>>(json);
                var check = items.FirstOrDefault(p => p.Contains("[YOUR PLUGIN SYSTEM NAME]", StringComparison.InvariantCultureIgnoreCase) == true);

                if (String.IsNullOrEmpty(check))
                {
                    return;
                }

            }
4 anni tempo fa
Sorry, that was bad idea probably... than you could not install it via UI
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.