Skip to content

Commit

Permalink
NTR: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
GuentherHade committed Feb 21, 2024
1 parent 8d5b031 commit a7c1614
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Resources/views/storefront/base.html.twig
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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 %}
Expand Down

0 comments on commit a7c1614

Please sign in to comment.