{% sw_extends '@Storefront/storefront/page/checkout/summary/summary-total.html.twig' %} {# Extension for the cart summary should only apply to InstallmentSecured since it modifies the prices accordingly to the selected rate! #} {% block page_checkout_summary_total %} {% if context.paymentMethod.id is constant("UnzerPayment6\\Installer\\PaymentInstaller::PAYMENT_ID_INSTALLMENT_SECURED") %} {% block page_checkout_summary_unzer_paymentinstallment_interest_label %}
{{ "UnzerPayment.frame.installmentSecured.totalInterest"|trans|sw_sanitize }}
{% endblock %} {% block page_checkout_summary_unzer_paymentinstallment_interest_value %}
{% if page.extensions.unzerFinishPage and (page.extensions.unzerFinishPage.installmentInformation|length > 0) %} {{ page.extensions.unzerFinishPage.installmentInformation[0].totalInterestAmount|currency }}{{ "general.star"|trans|sw_sanitize }} {% else %} {{ 0|currency }}{{ "general.star"|trans|sw_sanitize }} {% endif %}
{% endblock %} {% block page_checkout_summary_total_label %}
{{ "checkout.summaryTotalPrice"|trans|sw_sanitize }}
{% endblock %} {% block page_checkout_summary_total_value %}
{{ summary.price.totalPrice|currency }}{% if page.cart.price.taxStatus == "gross" %}{{ "general.star"|trans|sw_sanitize|trim }}{% endif %}
{% endblock %} {% block page_checkout_summary_unzer_paymentinstallment_total_label %}
{{ "UnzerPayment.frame.installmentSecured.totalAmount"|trans }}
{% endblock %} {% block page_checkout_summary_unzer_paymentinstallment_total_value %}
{% if page.extensions.unzerFinishPage and (page.extensions.unzerFinishPage.installmentInformation|length > 0) %} {{ page.extensions.unzerFinishPage.installmentInformation[0].totalAmount|currency }}{{ "general.star"|trans|sw_sanitize }} {% else %} {{ summary.price.totalPrice|currency }}{{ "general.star"|trans|sw_sanitize }} {% endif %}
{% endblock %} {% else %} {{ parent() }} {% endif %} {% endblock %}