From 1e506b079bdd0e601428823b51d6d3ece05231b7 Mon Sep 17 00:00:00 2001 From: Bartosz Sosnowski Date: Thu, 30 Jan 2025 11:40:00 +0100 Subject: [PATCH 1/2] Remove SEPA payment method if it's not eligible --- views/tpl/shared/page/checkout/sepa_cc_alternative.tpl | 2 +- views/tpl/shared/paymentbuttons.tpl | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/views/tpl/shared/page/checkout/sepa_cc_alternative.tpl b/views/tpl/shared/page/checkout/sepa_cc_alternative.tpl index 9e6007eb5..11ec1f317 100644 --- a/views/tpl/shared/page/checkout/sepa_cc_alternative.tpl +++ b/views/tpl/shared/page/checkout/sepa_cc_alternative.tpl @@ -2,6 +2,6 @@
[{include file="modules/osc/paypal/select_payment.tpl"}] - [{include file="modules/osc/paypal/paymentbuttons.tpl" buttonId=$sPaymentID buttonClass="paypal-button-wrapper large"}] + [{include file="modules/osc/paypal/paymentbuttons.tpl" buttonId=$sPaymentID buttonClass="paypal-button-wrapper paypal-button-wrapper--sepa large"}]
diff --git a/views/tpl/shared/paymentbuttons.tpl b/views/tpl/shared/paymentbuttons.tpl index ab279446b..02e371490 100644 --- a/views/tpl/shared/paymentbuttons.tpl +++ b/views/tpl/shared/paymentbuttons.tpl @@ -54,8 +54,11 @@ }) // Check if the button is eligible if (button.isEligible()) { - // Render the standalone button for that funding source + // Render the standalone button for that funding source button.render('#[{$buttonId}]') + } else { + //remove SEPA option from payments methods + $('.paypal-button-wrapper--sepa').parents('dl').remove(); } }); [{else}] From 662e64450ceb8f7a2d0f6d1e1b1c5fad9f3b265f Mon Sep 17 00:00:00 2001 From: Mario Lorenz Date: Fri, 31 Jan 2025 13:26:21 +0100 Subject: [PATCH 2/2] CHANGELOG --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fad5a131..7e7341600 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - [0007695](https://bugs.oxid-esales.com/view.php?id=7695): Explain better Pseudo delivery costs - Show vaulted Payments filtered by payment-method in account-view - fix issue with googlePay (await for the complete execution) +- fix Remove SEPA payment method of it is not eligible, temporary solution ### NEW