Всего сообщений:
59
Карма:
331
Присоединился:
24.07.2015
Страна:
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
Всего сообщений:
21
Карма:
321
Присоединился:
02.11.2017
Страна:
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.
Всего сообщений:
59
Карма:
331
Присоединился:
24.07.2015
Страна:
India
This thing requires changes in Namespace Nop.Web.Framework.Themes, Class ThemeableViewLocationExpander How this can be done only with the help of plugin