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 - payment method continue button

DanielŻuławski708be2614957
diff --git a/src/Web/Grand.Web/Views/Checkout/Start.cshtml b/src/Web/Grand.Web/Views/Checkout/Start.cshtml
index aad774a46..5663bb092 100644
--- a/src/Web/Grand.Web/Views/Checkout/Start.cshtml
+++ b/src/Web/Grand.Web/Views/Checkout/Start.cshtml
@@ -148,7 +148,7 @@
{
<a class="btn btn-secondary" href="#" id="back-payment_method" onclick="vmorder.Checkout.back(); return false;">@Loc["Common.Back"]</a>
}
- <input type="button" class="btn btn-info payment-method-next-step-button" onclick="vmorder.vPaymentMethod.save()" value="@Loc["Common.Continue"]" />
+ <input type="button" class="btn btn-info payment-method-next-step-button" @@click="vmorder.setDisabled(event)" onclick="vmorder.vPaymentMethod.save()" value="@Loc["Common.Continue"]" />
<span class="please-wait" id="payment-method-please-wait" style="display: none;">@Loc["Common.LoadingNextStep"]</span>
</div>
</b-card-body>
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 8458394d1..a0b70c2cc 100644
--- a/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js
+++ b/src/Web/Grand.Web/wwwroot/theme/script/public.checkout.js
@@ -58,6 +58,13 @@ var Order = Vue.extend({
selectedShippingMethod: 0
},
methods: {
+ setDisabled(e) {
+ var button = e.target;
+ button.classList.add('disabled');
+ setTimeout(function () {
+ button.classList.remove('disabled');
+ }, 600);
+ },
vmCheckout() {
this.Checkout = {
loadWaiting: false,