Skip to content

Commit 0380a5f

Browse files
author
dunglv
committed
134 Disable 'Place Order' button after clicking
1 parent b73c960 commit 0380a5f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

view/frontend/templates/payment/model/adyen-payment-method.phtml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,13 @@ $billingAddress = $block->getQuoteBillingAddress();
395395
}
396396
}
397397

398+
const btnPlaceOrder = document.querySelector('.btn-place-order');
399+
if (btnPlaceOrder) {
400+
btnPlaceOrder.style.pointerEvents = 'none';
401+
btnPlaceOrder.style.opacity = '0.5';
402+
btnPlaceOrder.style.cursor = 'not-allowed';
403+
}
404+
398405
wire.placeOrder({
399406
stateData: data,
400407
ccType: this.getCreditCardType(),

0 commit comments

Comments
 (0)