I've created a plugin that show a list of orders like the default but with extra filters. Now i want to override the default admin route: Admin/Order/List but i can't get this to work. This is my route provider:
Change the Action name of your method from List to any other method as it creates ambiguity between two methods. Also give full path of your view in order to redirect to your page.
hi i want override view admin/order/list.cshtml in mu plugin but when build confront error down:
Compiler Error Message: CS0103: The name 'EngineContext' does not exist in the current context///// Source Error:
Line 3: Line 4: @{ Line 5: var defaultGridPageSize = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().DefaultGridPageSize; Line 6: var gridPageSizes = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().GridPageSizes; Line 7: var stores = EngineContext.Current.Resolve<IStoreService>().GetAllStores();
hi i want override view admin/order/list.cshtml in mu plugin but when build confront error down:
Compiler Error Message: CS0103: The name 'EngineContext' does not exist in the current context///// Source Error:
Line 3: Line 4: @{ Line 5: var defaultGridPageSize = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().DefaultGridPageSize; Line 6: var gridPageSizes = EngineContext.Current.Resolve<Nop.Core.Domain.Common.AdminAreaSettings>().GridPageSizes; Line 7: var stores = EngineContext.Current.Resolve<IStoreService>().GetAllStores();
You have to add appropriate name space of engine context at top of cshtml page.