Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Fix wishlist update
KrzysztofPajak1bf3ce485c09
diff --git a/src/Web/Grand.Web/Endpoints/EndpointProvider.cs b/src/Web/Grand.Web/Endpoints/EndpointProvider.csindex 7ee04935d..0cc355ae9 100644--- a/src/Web/Grand.Web/Endpoints/EndpointProvider.cs+++ b/src/Web/Grand.Web/Endpoints/EndpointProvider.cs@@ -599,6 +599,15 @@ namespace Grand.Web.EndpointsendpointRouteBuilder.MapControllerRoute("EmailWishlist",pattern + "emailwishlist",new { controller = "Wishlist", action = "EmailWishlist" });++ //email wishlist+ endpointRouteBuilder.MapControllerRoute("UpdateWishlist",+ pattern + "updatewishlist",+ new { controller = "Wishlist", action = "UpdateWishlist" });+ //email wishlist+ endpointRouteBuilder.MapControllerRoute("AddItemsToCartFromWishlist",+ pattern + "additemstocartwishlist",+ new { controller = "Wishlist", action = "AddItemsToCartFromWishlist" });}private void RegisterOrderRoute(IEndpointRouteBuilder endpointRouteBuilder, string pattern)diff --git a/src/Web/Grand.Web/Views/Wishlist/Index.cshtml b/src/Web/Grand.Web/Views/Wishlist/Index.cshtmlindex ea22c75dd..88bc95c41 100644--- a/src/Web/Grand.Web/Views/Wishlist/Index.cshtml+++ b/src/Web/Grand.Web/Views/Wishlist/Index.cshtml@@ -44,7 +44,7 @@</ul></div>}- <form asp-route="Wishlist" method="post">+ <form asp-controller="Wishlist" asp-action="Index" method="post">@if (!Model.IsEditable && Model.Items.Any()){<input type="hidden" asp-for="@Model.CustomerGuid" />