{% sw_extends '@Storefront/storefront/component/address/address-form.html.twig' %}{% block component_address_form_addressId %} {% if data.get('id') %} {# We just add class "d-none" here to keep the css simple #} <input type="hidden" name="{{ prefix }}[id]" class="d-none" value="{{ data.get('id') }}" /> {% endif %}{% endblock %}{% block component_address_form_company_name %} <div class="form-group col-6 {% if prefix != "shippingAddress" and accountTypeRequired %}form-required-container{% endif %}"> {% if formViolations.getViolations("/company") is not empty %} {% set violationPath = "/company" %} {% elseif formViolations.getViolations("/#{prefix}/company") is not empty %} {% set violationPath = "/#{prefix}/company" %} {% endif %} {% block component_address_form_company_name_label %} {{ parent() }} {% endblock %} {% block component_address_form_company_name_input %} {{ parent() }} {% endblock %} {% block component_address_form_company_name_input_error %} {{ parent() }} {% endblock %} </div>{% endblock %}{% block component_address_form_company_vatId %} {% if not feature('FEATURE_NEXT_15957') and showVatIdField %} <div class="form-group col-md-6"> {% if formViolations.getViolations("/vatId") is not empty %} {% set violationPath = "/vatId" %} {% elseif formViolations.getViolations("/#{prefix}/vatId") is not empty %} {% set violationPath = "/#{prefix}/vatId" %} {% endif %} {% block component_address_form_company_vatId_label %} {{ parent() }} {% endblock %} {% block component_address_form_company_vatId_input %} {{ parent() }} {% endblock %} {% block component_address_form_company_vatId_input_error %} {{ parent() }} {% endblock %} </div> {% elseif feature('FEATURE_NEXT_15957') and prefix == 'address' and showVatIdField %} <div class="form-group col-md-6 form-required-container"> {% sw_include '@Storefront/storefront/component/address/address-personal-vat-id.html.twig' with { 'vatIds': context.customer.vatIds } %} </div> {% endif %}{% endblock %}{% block component_address_form_country_select %} <wyn-select class="country-select{% if violationPath %} is-invalid{% endif %}" id="{{ idPrefix ~ prefix }}AddressCountry" name="{{ prefix }}[countryId]" required data-initial-country-id="{{ initialCountryId }}" > {% if not initialCountryId %} <wyn-option disabled selected value=""> {{ "address.countryPlaceholder"|trans|sw_sanitize }} </wyn-option> {% endif %} {% for country in page.countries %} <wyn-option {% if country.id == initialCountryId %}selected{% endif %} value="{{ country.id }}" data-vat-id-required="{{ country.vatIdRequired }}" {% if feature('FEATURE_NEXT_15707') and not country.shippingAvailable and disableNonShippableCountries %} disabled {% endif %} > {{ country.translated.name }}{% if feature('FEATURE_NEXT_15707') and showNoShippingPostfix and not country.shippingAvailable %} {{ "address.countryPostfixNoShipping"|trans|sw_sanitize }}{% endif %} </wyn-option> {% endfor %} </wyn-select>{% endblock %}{% block component_address_form_country_state_select %} <wyn-select class="country-state-select {{ formSelectClass }}{% if violationPath %} is-invalid{% endif %}" id="{{ idPrefix ~ prefix }}AddressCountryState" name="{{ prefix }}[countryStateId]" data-initial-country-state-id="{{ data.get('countryStateId') }}" > <wyn-option value="" selected data-placeholder-option="true"> {{ "address.countryStatePlaceholder"|trans|sw_sanitize }} </wyn-option> </wyn-select>{% endblock %}