plugin installation issue

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 8 años
hi,
i m a fresher in nopcommerce technology and i have learn everything about nopcommerce from online. I m creating one plugin. That plugin is visible inside my admin plugin list with install/uninstall button and the functionality of that plugin is also working properly. But the issue is that without installation of my plugin the functionality is  working on customer side. I do not understand how implement the install and uninstall button functionality.
My controller Action is directly access by hitting in browser URL and my routeprovider is not working in that case. I need some one help so that i can perform my task.

namespace Nop.Plugin.Misc.SSO
{
    public class RouteProvider: IRouteProvider
    {
        public void RegisterRoutes(RouteCollection routes)
        {
            // view eninge
            routes.MapRoute("Plugin.Misc.SSO.Index",
                 "Plugins/SSOUSER/Index",
                 new { controller = "SSOUSER", action = "Index" },
                 new[] { "Nop.Plugin.Misc.SSO.Controllers" }
            );
        }
        public int Priority
        {
            get
            {
                return 0;
            }
        }
    }
}
Hace 8 años
I don't understand this sentence: "But the issue is that without installation of my plugin the functionality is  working on customer side.", can you explain more? :)
Hace 8 años
thanks for the help. But i found the solution for my problem.
Hace 8 años
(Please share your solution, so it may help others in the future :)

If a plugin is in the /Plugins folder it gets "loaded".  Depending on the interfaces you inherit, parts of your plugin could still be 'active' even if you don't Install.  The Install just calls your plugin's Install method which does your required setup (create DB tables, locale stings, etc.)
Hace 8 años
I'll go one further and just say that it's plain rude to be asking questions then not providing the solution so others can benefit.  There are a lot of people out there (myself definitely included) that would love to see the solutions, and it doesn't need to divulge any "secret" coding.


Cheers,
Paul
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.