{% sw_extends '@Storefront/storefront/component/address/address-form.html.twig' %}
{% block component_address_form %}
{% block component_account_register_address_form %}{% endblock %}
{% set italyCountryId = page.extensions.italyCountryId %}
{% set initialCountryId = null %}
{% if data.get('countryId') %}
{% set initialCountryId = data.get('countryId') %}
{% elseif page.countries|length == 1 %}
{% set initialCountryId = (page.countries|first).id %}
{% endif %}
{% set isNotItaly = initialCountryId != italyCountryId %}
{% block component_account_register_address_form_fiscal_code %}
{% sw_include '@Storefront/storefront/component/address/address-fiscal-code.html.twig' with {
'prefix': prefix,
'data': data
} %}
{% endblock %}
{{ parent() }}
{% endblock %}
{% block component_address_form_company_fields %}
{{ parent() }}
{% block component_account_register_address_company_fields %}
{% if config('core.loginRegistration.showAccountTypeSelection') %}
{% sw_include '@Storefront/storefront/component/address/address-company-additional-fields.html.twig' with {
'prefix': prefix,
'data': data
} %}
{% endif %}
{% endblock %}
{% endblock %}