I am trying to override an admin partial view(Nop.Web\Administration\Views\Order\_OrderDetails.Shipping.cshtml used in the Nop.Web\Administration\Views\Order\Edit.cshtml) in a Shipping Computation method plugin.
I followed the guidelines in your blog post but couldn't quite manage to accomplish the task.
I created a CustomViewEngine which inherits from RazorViewEngine, added the partial view search locations.
Next I inserted the CustomViewEngine before the other View engines in my RouteCoinfig class.
Since I am overriding partial view, I don't need a controller and route to it.
So finally I added my partial view to the search location in my plugin.
Unfortunately the effect was that Nop was still using its own admin views. Only when I rename the original partial view, Nop loads the one from the plugin. When I rename it as well, I can see the search locations in the browser with my plugin's location at the front:
The partial view '_OrderDetails.Shipping' was not found or no view engine supports the searched locations. The following locations were searched:
It looks as if I am missing something.
Maybe after all I should override the parent admin view as well, add an action for it and a controller route.