From 60a25dc963fa49d063c29cc36c0be3bfc0eb6518 Mon Sep 17 00:00:00 2001 From: Ivascu Madalin Date: Fri, 24 Nov 2023 10:05:32 +0200 Subject: [PATCH] BP-3191 Module loads too fast (Unexpected identifier) (#9) * move js to the after component * fix css --------- Co-authored-by: Ivascu Madalin --- .../templates/component/payment/after.phtml | 586 +++++++++++++++--- .../component/payment/method/afterpay.phtml | 22 +- .../component/payment/method/afterpay20.phtml | 18 +- .../component/payment/method/applepay.phtml | 88 +-- .../component/payment/method/billink.phtml | 18 +- .../component/payment/method/creditcard.phtml | 4 +- .../payment/method/creditcards.phtml | 112 +--- .../component/payment/method/giftcards.phtml | 73 +-- .../component/payment/method/giropay.phtml | 4 +- .../component/payment/method/ideal.phtml | 4 +- .../component/payment/method/in3.phtml | 8 +- .../component/payment/method/mrcash.phtml | 54 +- .../payment/method/payperemail.phtml | 14 +- .../component/payment/method/sepaDirect.phtml | 12 +- .../component/payment/method/tinka.phtml | 8 +- .../component/payment/method/voucher.phtml | 77 +-- 16 files changed, 562 insertions(+), 540 deletions(-) diff --git a/view/frontend/templates/component/payment/after.phtml b/view/frontend/templates/component/payment/after.phtml index 0210427..8992e5f 100644 --- a/view/frontend/templates/component/payment/after.phtml +++ b/view/frontend/templates/component/payment/after.phtml @@ -1,28 +1,4 @@ -
+
\ No newline at end of file diff --git a/view/frontend/templates/component/payment/method/afterpay.phtml b/view/frontend/templates/component/payment/method/afterpay.phtml index 34d6062..0741b8b 100644 --- a/view/frontend/templates/component/payment/method/afterpay.phtml +++ b/view/frontend/templates/component/payment/method/afterpay.phtml @@ -19,7 +19,7 @@ use Magento\Framework\Escaper;
hasError('dateOfBirth')) : ?> -
escapeHtmlAttr($magewire->getError('dateOfBirth')) ?>
+
escapeHtmlAttr($magewire->getError('dateOfBirth')) ?>
hasError('phone')) : ?> -
escapeHtmlAttr($magewire->getError('phone')) ?>
+
escapeHtmlAttr($magewire->getError('phone')) ?>
hasError('iban')) : ?> -
escapeHtmlAttr($magewire->getError('iban')) ?>
+
escapeHtmlAttr($magewire->getError('iban')) ?>
hasError('coc')) : ?> -
escapeHtmlAttr($magewire->getError('coc')) ?>
+
escapeHtmlAttr($magewire->getError('coc')) ?>
hasError('companyName')) : ?> -
escapeHtmlAttr($magewire->getError('companyName')) ?>
+
escapeHtmlAttr($magewire->getError('companyName')) ?>
hasError('tos')) : ?> -
escapeHtmlAttr($magewire->getError('tos')) ?>
+
escapeHtmlAttr($magewire->getError('tos')) ?>
diff --git a/view/frontend/templates/component/payment/method/afterpay20.phtml b/view/frontend/templates/component/payment/method/afterpay20.phtml index 793dfd8..3005ac4 100644 --- a/view/frontend/templates/component/payment/method/afterpay20.phtml +++ b/view/frontend/templates/component/payment/method/afterpay20.phtml @@ -24,7 +24,7 @@ use Magento\Framework\Escaper;
hasError('dateOfBirth')): ?> -
escapeHtmlAttr($magewire->getError('dateOfBirth')) ?>
+
escapeHtmlAttr($magewire->getError('dateOfBirth')) ?>
hasError('identificationNumber')): ?> -
escapeHtmlAttr($magewire->getError('identificationNumber')) ?>
+
escapeHtmlAttr($magewire->getError('identificationNumber')) ?>
hasError('phone')): ?> -
escapeHtmlAttr($magewire->getError('phone')) ?>
+
escapeHtmlAttr($magewire->getError('phone')) ?>
hasError('coc')): ?> -
escapeHtmlAttr($magewire->getError('coc')) ?>
+
escapeHtmlAttr($magewire->getError('coc')) ?>
hasError('tos')): ?> -
escapeHtmlAttr($magewire->getError('tos')) ?>
+
escapeHtmlAttr($magewire->getError('tos')) ?>
diff --git a/view/frontend/templates/component/payment/method/applepay.phtml b/view/frontend/templates/component/payment/method/applepay.phtml index 1e229c8..4f5533d 100644 --- a/view/frontend/templates/component/payment/method/applepay.phtml +++ b/view/frontend/templates/component/payment/method/applepay.phtml @@ -6,93 +6,7 @@ declare(strict_types=1); use Magento\Framework\Escaper; ?> -
+