From a7c16144e23b0a3bb0ca96a626f64af4079262d9 Mon Sep 17 00:00:00 2001 From: Aleksej Wert Date: Wed, 21 Feb 2024 08:13:09 +0100 Subject: [PATCH] NTR: added comments --- src/Resources/views/storefront/base.html.twig | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Resources/views/storefront/base.html.twig b/src/Resources/views/storefront/base.html.twig index 066fee9b4..12d3fd5c9 100644 --- a/src/Resources/views/storefront/base.html.twig +++ b/src/Resources/views/storefront/base.html.twig @@ -1,8 +1,9 @@ {% sw_extends '@Storefront/storefront/base.html.twig' %} {% block base_main %} - + {% block mollie_payments_js_control %} + {# pages where apple pay requires js with their mollie_applepaydirect_restrictions names as values #} {% set onlyShowHere = { 'frontend.checkout.confirm.page' : '', 'frontend.checkout.cart.page' : 'cart', @@ -19,6 +20,8 @@ {% if currentRoute == 'frontend.checkout.cart.page' or currentRoute == 'frontend.checkout.confirm.page' %} {% set implementJS = true %} {% endif %} + + {# requirement check for apple pay #} {% if mollie_applepaydirect_enabled %} {% if currentRoute in onlyShowHere|keys and onlyShowHere[currentRoute] not in mollie_applepaydirect_restrictions %} {% set implementJS = true %}