custom/plugins/MolliePayments/src/Resources/views/storefront/page/checkout/cart/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/checkout/cart/index.html.twig' %}
  2. {% block page_checkout_cart %}
  3.     {% if mollie_applepay_enabled %}
  4.         <div id="mollie_hide_applepay" data-mollie-template-applepay-account data-mollie-apple-pay-payment-method-options="{{ {
  5.             shopUrl: seoUrl('frontend.home.page'),
  6.             hideAlways: true,
  7.             applePayId: apple_pay_payment_method_id,
  8.             hideApplePayOption: true
  9.         }
  10.         |json_encode }}"></div>
  11.     {% endif %}
  12.     {{ parent() }}
  13. {% endblock %}
  14. {% block page_checkout_cart_shipping_costs_form_group_payment_method %}
  15.     <div class="form-group">
  16.         <label for="paymentMethodId">{{ "checkout.paymentMethod"|trans|sw_sanitize }}</label>
  17.         <select class="custom-select form-select" type="text" id="paymentMethodId" name="paymentMethodId">
  18.             {% for payment in page.paymentMethods %}
  19.                 <option value="{{ payment.id }}"
  20.                         {% if payment.id == context.paymentMethod.id %} selected="selected"{% endif %}>
  21.                     {{ payment.translated.name }}
  22.                     {% if "MolliePayments" in payment.handlerIdentifier and page.isMollieTestMode == true %}
  23.                         ({{ "molliePayments.testMode.label"|trans }})
  24.                     {% endif %}
  25.                 </option>
  26.             {% endfor %}
  27.         </select>
  28.     </div>
  29. {% endblock %}
  30. {% block page_checkout_aside_actions %}
  31.     {{ parent() }}
  32.     {% set applePayVisible =  mollie_applepaydirect_enabled and ('cart' not in mollie_applepaydirect_restrictions) %}
  33.     {% set paypalExpressVisible = mollie_paypalexpress_enabled and ('cart' not in mollie_paypalexpress_restrictions)  %}
  34.     {% set noticeVisible = applePayVisible or paypalExpressVisible %}
  35.     {% sw_include '@MolliePayments/mollie/component/express-privacy-notice.html.twig' with {visible:noticeVisible} %}
  36.     {% if applePayVisible %}
  37.         {% block page_checkout_aside_actions_apple_direct_component %}
  38.             <div class="mt-2 js-apple-pay-container mollie-apple-pay-direct-cart d-none">
  39.                 {% include '@MolliePayments/mollie/component/apple-pay-direct-button.html.twig' %}
  40.             </div>
  41.         {% endblock %}
  42.     {% endif %}
  43.     {% if paypalExpressVisible %}
  44.         {% block page_checkout_aside_actions_mollie_paypal_express_component %}
  45.             <div class="mt-2 mollie-paypal-express-cart">
  46.                 {% include '@MolliePayments/mollie/component/paypal-express-button.html.twig' %}
  47.             </div>
  48.         {% endblock %}
  49.     {% endif %}
  50. {% endblock %}