sunnyw wrote:Thank you sunnyw for the response and solution,
I am overriding product view, I just want to override a single partial view '_CreateOrUpdate.Info.cshtml'.
However I did that and loaded data successfully for Product Info tab from my controller of plugin but the rest tabs doesn't loads data with
404 found seems that the routing changes for all.
This is my routing for
var route =
routes.MapRoute("Plugin.Custom.Manager.Product.Edit.Id",
"Admin/Product/Edit/{id}",
new { controller = "Manager", action = "Edit", area = "Admin" },
new { id = @"\d+" },
new[] { "Nop.Plugin.Custom.Manager.Controllers" }
);
routes.Remove(route);
routes.Insert(0, route);
and also when I navigate to Catalog -> Products -> Manage Products it removes the Admin/ prefix from 'Clear cache' & 'Restart application'.
This is my routing for Product List
var route =
routes.MapRoute("Plugin.Custom.Manager.Product.List",
"Admin/Product/List",
new { controller = "Manager", action = "List", area = "Admin" },
new[] { "Nop.Plugin.Custom.Manager.Controllers" }
);
routes.Remove(route);
routes.Insert(1, route);
I am not able to figure out the issue of routing. So can please help me with this?
Thanks in advance.