Total Posts:
59
Karma:
331
Joined:
7/24/2015
Location:
India
I want to override vendor page using plugin Please help mot able to find how to override routeBuilder.MapLocalizedRoute("Vendor", "{SeName}", new { controller = "Catalog", action = "Vendor" }); Using Plugin in nopcommerce 4.10
Total Posts:
21
Karma:
321
Joined:
11/2/2017
Location:
India
Hello sumit7034 ViewLocationExpander.cs public class ViewLocationExpander : IViewLocationExpander { public IEnumerable<string> ExpandViewLocations(ViewLocationExpanderContext context, IEnumerable<string> viewLocations) { if (context.AreaName == null && context.ControllerName == "Catalog" && context.ViewName == "Vendor") { viewLocations = new string[] { "/Plugins/your.plugin.SystemName/Views/Catalog/{0}.cshtml" }.Concat(viewLocations); } return viewLocations; } } It can be help for you.
Total Posts:
59
Karma:
331
Joined:
7/24/2015
Location:
India
This thing requires changes in Namespace Nop.Web.Framework.Themes, Class ThemeableViewLocationExpander How this can be done only with the help of plugin