{% extends "layout/base.html.twig" %}
{% block base_js %}
{{ parent() }}
{% if oViewConf.isPayPalCheckoutActive() %}
{% set className = oViewConf.getTopActiveClassName() %}
{% if oViewConf.isPayPalExpressPaymentEnabled() and
((className == 'order' and not oViewConf.isPayPalACDCSessionActive()) or (className != 'order' and className != 'payment')) and
(
(oxcmp_basket.getProductsCount() and oViewConf.showPayPalMiniBasketButton()) or
(className == 'details' and oViewConf.showPayPalProductDetailsButton()) or
(className == 'basket' and oViewConf.showPayPalBasketButton())
)
%}
{% set sCountryRestriction = oViewConf.getCountryRestrictionForPayPalExpress() %}
{% if sCountryRestriction %}
{% endif %}
{% elseif className == 'order' and oViewConf.isPayPalACDCSessionActive() %}
{% elseif className == 'payment' %}
{% elseif oViewConf.isPayPalBannerActive() and (className == 'start' or className == 'search' or className == 'details' or className == 'alist' or className == 'basket') %}
{% endif %}
{% if submitCart %}
{% endif %}
{% endif %}
{% endblock %}
{% block base_style %}
{{ parent() }}
{% if oViewConf.isPayPalCheckoutActive() %}
{{ style({ include: oViewConf.getModuleUrl('osc_paypal', 'css/paypal.min.css') }) }}
{% endif %}
{% endblock %}