{% if sAddressType == "AG" and oViewConf.getActiveClassName() == "account" %} {{ translate({ ident: "C4S_B2B_DASHBOARD_COMPANY_DATA" }) }} {# Stammdaten Unternehmen - Überschrift in Dashboard.tpl #} {% else %} {% set sAddressTypeNameLangIdent = "C4S_B2B_ADDRESS_NAME_" ~ sAddressType %} {{ translate({ ident: sAddressTypeNameLangIdent }) }} {% endif %}

{% if oPartnerAddressList|length > 0 %} {% set oPartnerAddress = '' %} {# if only one shipping address available -> set address for address display and form #} {% if oPartnerAddressList|length == 1 %} {% for oAddress in oPartnerAddressList %} {% set oPartnerAddress = oAddress %} {% endfor %} {# if more than one shipping address available -> show and handle address selection #} {% elseif oPartnerAddressList|length > 1 %}
{{ script({ add: "c4s_b2b_address_handler.init('c4s-b2b-address-select-" ~ sAddressType ~ "');", dynamic: __oxid_include_dynamic }) }} {% set sSelectedAddressId = oxcmp_basket.getPartnerRole(sAddressType) %}
{% endif %} {# display actual partner address #} {% if oPartnerAddress %} {% endif %} {% else %}
{{ translate({ ident: "C4S_B2B_ATTENTION_LABEL" }) }}!
{{ translate({ ident: "C4S_B2B_ATTENTION_PARTNER_ADDRESS" }) }}!
{{ script({ add: " document.addEventListener('DOMContentLoaded', function() { let userNextStepButton = document.getElementById('c4s-user-next-step-btn'); if (userNextStepButton) { userNextStepButton.remove(); } });", dynamic: __oxid_include_dynamic }) }} {% endif %}
{% if blLoadAddressInAccountView %} {% endif %}