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
Contact vendor - fix name
KrzysztofPajak821c021f171a
diff --git a/src/Web/Grand.Web/Endpoints/EndpointProvider.cs b/src/Web/Grand.Web/Endpoints/EndpointProvider.csindex 8b5b3ed48..317a1d976 100644--- a/src/Web/Grand.Web/Endpoints/EndpointProvider.cs+++ b/src/Web/Grand.Web/Endpoints/EndpointProvider.cs@@ -203,7 +203,7 @@ namespace Grand.Web.Endpoints//contact vendorendpointRouteBuilder.MapControllerRoute("ContactVendor",- pattern + "vendor/contact/{vendorId?}",+ pattern + "vendor/contact/{vendorId}",new { controller = "Vendor", action = "ContactVendor" });}diff --git a/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml b/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtmlindex 3d3dceea5..b2510251a 100644--- a/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml+++ b/src/Web/Grand.Web/Views/Catalog/Components/VendorContact/Default.cshtml@@ -66,7 +66,7 @@ else}</div><div class="btn-group text-sm-center pt-3 pb-3">- <input type="submit" name="send-email" class="btn btn-info contact-us-button" data-form="contactvendor.test('/vendor/contact/@Model.VendorId')" value="@Loc["ContactVendor.Button"]" />+ <input type="submit" name="send-email" class="btn btn-info contact-us-button" data-form="contactvendor.submitVendorContact('@Url.RouteUrl("ContactVendor", new { vendorId = Model.VendorId })')" value="@Loc["ContactVendor.Button"]" /></div></form></validation-observer>@@ -88,8 +88,7 @@ else}}),methods: {- test(url) {- alert('test');+ submitVendorContact(url) {var bodyFormData = new FormData(document.getElementById("vendorContact"));axios({url: url,diff --git a/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml b/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtmlindex 75ba5c2b9..9a80bbf78 100644--- a/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml+++ b/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml@@ -3,6 +3,7 @@<div class="mb-3"><a class="btn btn-info" @@click="vendorreviews.addVendorReview()">@Loc["Reviews.Overview.AddNew"]</a></div>+@if (Model.AddVendorReview.DisplayCaptcha){<div id="captcha-container">@@ -110,7 +111,7 @@vm.$refs['ModalVendorReview'].show();},modalReviewShown: function () {- if (vendorreviews.Model.AddVendorReview.DisplayCaptcha && document.querySelector("#ModalVendorReview .captcha-box") == null) {+ if (vendorreviews.Model.AddVendorReview.DisplayCaptcha && document.querySelector("#ModalVendorReview .captcha-box") == null) {var html = document.getElementById("captcha-box");document.getElementById("captcha-popup").prepend(html);}