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.
Il y a 5 ans
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.
Il y a 5 ans
See this response
Il y a 5 ans
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.
Il y a 5 ans
New York wrote:

This is not working in ConfigureServices of INopStartup under plugin.
Il y a 5 ans
New York wrote:

that not working in my case. see here
Il y a 5 ans
According to this post, tis is fixed in nopCommerce 4.20 current repo.
Il y a 4 ans
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;
                }

            }
Il y a 4 ans
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.