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;
}
}
}
}