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