custom/plugins/426-fourtwosixregistrationfields/src/Resources/views/storefront/component/address/address-form.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/address/address-form.html.twig' %}
  2. {% block component_address_form %}
  3.     {% block component_account_register_address_form %}{% endblock %}
  4.     {% set italyCountryId = page.extensions.italyCountryId %}
  5.     {% set initialCountryId = null %}
  6.     {% if data.get('countryId') %}
  7.         {% set initialCountryId = data.get('countryId') %}
  8.     {% elseif page.countries|length == 1 %}
  9.         {% set initialCountryId = (page.countries|first).id %}
  10.     {% endif %}
  11.     {% set isNotItaly = initialCountryId != italyCountryId %}
  12.     {% block component_account_register_address_form_fiscal_code %}
  13.         {% sw_include '@Storefront/storefront/component/address/address-fiscal-code.html.twig' with {
  14.             'prefix': prefix,
  15.             'data': data
  16.         } %}
  17.     {% endblock %}
  18.     {{ parent() }}
  19. {% endblock %}
  20. {% block component_address_form_company_fields %}
  21.     {{ parent() }}
  22.     {% block component_account_register_address_company_fields %}
  23.         {% if config('core.loginRegistration.showAccountTypeSelection') %}
  24.             {% sw_include '@Storefront/storefront/component/address/address-company-additional-fields.html.twig' with {
  25.                 'prefix': prefix,
  26.                 'data': data
  27.             } %}
  28.         {% endif %}
  29.     {% endblock %}
  30. {% endblock %}