简体   繁体   English

NopCommerce 4.30 覆盖 Register.cshtml

[英]NopCommerce 4.30 Overriding Register.cshtml

i want to override Nop.Web Views (Login,Register).我想覆盖 Nop.Web 视图(登录,注册)。 i'm creating a new plugin and i'm using NopCommerce 4.3.我正在创建一个新插件,我正在使用 NopCommerce 4.3。 All the solutions i found are not compatible with 4.3 Version.我发现的所有解决方案都与 4.3 版本不兼容。 Any Help is appreciated.任何帮助表示赞赏。

Thanks谢谢

Hi you can use similar solution to solve this problem.您好,您可以使用类似的解决方案来解决此问题。 In your RouteProvider.cs在您的 RouteProvider.cs

public partial class RouteProvider : IRouteProvider
   {
    public void RegisterRoutes(IEndpointRouteBuilder endpointRouteBuilder)
        {
               endpointRouteBuilder.MapControllerRoute("RedirectLogin",
                    "yourController/yourAction",
                    new { controller = "Customer", action = "Register" });
        }
    }

I hope this helped我希望这有帮助

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Register.cshtml 中添加下拉列表 - How to add Dropdownlist in Register.cshtml 如何从 register.cshtml 和 register.cshtml.cs 中的 AspNetRoles 表中构建下拉列表? - how to Build drop-down list from AspNetRoles table in register.cshtml and register.cshtml.cs? registration\Areas\Identity\Pages\Account\Register.cshtml(61,78,61,83):错误 CS0103:当前上下文中不存在名称“角色” - registration\Areas\Identity\Pages\Account\Register.cshtml(61,78,61,83): error CS0103: The name 'roles' does not exist in the current context Nopcommerce压倒控制器 - Nopcommerce Overriding Controller NopCommerce 路由:如何在 NC 4.30 中正确创建和使用插件路由 - NopCommerce routing: How to correctly create and make use of plugin routes in NC 4.30 使用填充依赖项注入的ctor参数覆盖nopCommerce控制器 - Overriding nopCommerce controller with ctor arguments filling with dependency injection 通过覆盖插件nopCommerce 3.3中的GenericPathRoute.cs来更改URL路由 - Change URL Routing by overriding GenericPathRoute.cs in Plugin nopCommerce 3.3 nopcommerce 将动态“消息”传递给 displayBarNotification(message, messagetype, timeout) [_ProductBox.cshtml] - nopcommerce passing a dynamic "message" to displayBarNotification(message, messagetype, timeout) [_ProductBox.cshtml] 在覆盖 nopCommerce 插件中的视图时,当前上下文中不存在名称“T” - The name 'T' does not exist in the current context while overriding view in a nopCommerce plugin 防止客户输入价格超越NopCommerce中的所有其他价格 - Preventing customers from entering price from overriding all other prices in NopCommerce
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM