Skip to content

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.

checkout - pickup points

DanielŻuławskida80c32c15ad
diff --git a/src/Web/Grand.Web/Views/Checkout/_ShippingAddressPickupInStore.cshtml b/src/Web/Grand.Web/Views/Checkout/_ShippingAddressPickupInStore.cshtml
index bf86050a8..7d76e17c2 100644
--- a/src/Web/Grand.Web/Views/Checkout/_ShippingAddressPickupInStore.cshtml
+++ b/src/Web/Grand.Web/Views/Checkout/_ShippingAddressPickupInStore.cshtml
@@ -21,7 +21,7 @@
@if (Model.AllowPickUpInStore)
{
- <div class="pickup-points" id="pickup-points-form">
+ <div class="pickup-points" id="pickup-points-form" v-show="vmorder.PickUpInStore">
@if (Model.PickupPoints.Any())
{
if (Model.PickUpInStoreOnly)
diff --git a/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js b/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js
index 109f2510e..9710540c6 100644
--- a/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js
+++ b/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js
@@ -232,7 +232,6 @@ var vmorder = new Vue({
vmorder.paymentBusy = true;
vmorder.validPayment = true;
document.querySelector(".payment-info-next-step-button").classList.add("disabled");
- document.querySelector(".payment-info-next-step-button").setAttribute("onclick", "vmorder.vPaymentInfo.save()");
axios({
baseURL: '/Component/Index?Name=' + model.PaymentViewComponentName,
method: 'get',