I create a plugin and introduce a new route
namespace Nop.Plugin.Misc.ODBCOrderExport
{
class RouteProvider : IRouteProvider
{
public int Priority
{
get
{
return 0;
}
}
public void RegisterRoutes(RouteCollection routes)
{
routes.MapLocalizedRoute("Plugin.Misc.ODBCOrderExport.OrderViewDetails",
"Admin/Order/Edit/ODBC/{orderId}",
new { controller = "ODBCOrderExport", action = "OrderViewDetails", orderId = UrlParameter.Optional },
new { orderId = @"\d+" },
new[] { "Nop.Plugin.Misc.ODBCOrderExport.Controllers" }
);
}
}
}
Then I go to the link like http://localhost:15536/Admin/Order/Edit/ODBC/35 and receive 404 error. I make break point in controller method but i dont come to it. What can be wrong?