custom/plugins/SwagPayPal/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_table_items %}
  3.     {{ parent() }}
  4.     {% block page_checkout_cart_table_items_paypal_installment_banner %}
  5.         {# @var \Swag\PayPal\Installment\Banner\BannerData installmentBanner #}
  6.         {% set installmentBanner = page.extensions[constant('Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_CART_PAGE_EXTENSION_ID')] %}
  7.         {% if installmentBanner.cartEnabled %}
  8.             <div class="form-row">
  9.                 <div class="col"
  10.                      data-swag-paypal-installment-banner="true"
  11.                      data-swag-pay-pal-installment-banner-options="{{ installmentBanner|json_encode }}">
  12.                 </div>
  13.             </div>
  14.         {% endif %}
  15.     {% endblock %}
  16. {% endblock %}
  17. {% block page_checkout_aside_actions %}
  18.     {{ parent() }}
  19.     {% block page_checkout_aside_actions_paypal_express_button %}
  20.         {# @var \Swag\PayPal\Checkout\ExpressCheckout\ExpressCheckoutButtonData expressSettings #}
  21.         {% set expressSettings = page.extensions[constant('Swag\\PayPal\\Checkout\\ExpressCheckout\\ExpressCheckoutSubscriber::PAYPAL_EXPRESS_CHECKOUT_BUTTON_DATA_EXTENSION_ID')] %}
  22.         {% if expressSettings.cartEnabled %}
  23.             {% sw_include '@SwagPayPal/storefront/component/ecs-spb-checkout/ecs-button.html.twig' with {button_class: 'checkout-aside-action'} %}
  24.         {% endif %}
  25.     {% endblock %}
  26.     {% block page_checkout_aside_actions_paypal_installment_banner %}
  27.         {# @var \Swag\PayPal\Installment\Banner\BannerData installmentBanner #}
  28.         {% set installmentBanner = page.extensions[constant('Swag\\PayPal\\Installment\\Banner\\InstallmentBannerSubscriber::PAYPAL_INSTALLMENT_BANNER_DATA_EXTENSION_ID')] %}
  29.         {% if installmentBanner.cartEnabled %}
  30.             <div class="checkout-aside-action"
  31.                  data-swag-paypal-installment-banner="true"
  32.                  data-swag-pay-pal-installment-banner-options="{{ installmentBanner|json_encode }}">
  33.             </div>
  34.         {% endif %}
  35.     {% endblock %}
  36. {% endblock %}