{% sw_extends '@Storefront/storefront/component/address/address-personal.html.twig' %}{% block component_address_personal_vat_id_fields %} <div class="{{ formRowClass }}"> <div class="form-group col-12 form-required-container"> {% sw_include '@Storefront/storefront/component/address/address-personal-vat-id.html.twig' with { 'vatIds': data.get('vatIds'), 'editMode': true } %} </div> </div>{% endblock %}{% block component_address_personal_fields_birthday_select_day %} <div class="form-group col-md-2 col-4"> <wyn-select id="{{ idPrefix ~ prefix }}personalBirthday" name="{% if prefix %}{{ prefix }}[birthdayDay]{% else %}birthdayDay{% endif %}" class="{% if formViolations.getViolations('/birthdayDay') is not empty %} is-invalid{% endif %}" {{ config('core.loginRegistration.birthdayFieldRequired') ? 'required' }} > {% if not data.get('birthdayDay') %} <wyn-option selected disabled value=""> {{ "account.personalBirthdaySelectDay"|trans|sw_sanitize }} </wyn-option> {% endif %} {% for day in range(1, 31) %} <wyn-option value="{{ day }}" {% if day == data.get('birthdayDay') %} selected="selected"{% endif %}> {{ day }} </wyn-option> {% endfor %} </wyn-select> {% block component_address_personal_fields_birthday_select_day_error %} {{ parent() }} {% endblock %} </div>{% endblock %}{% block component_address_personal_fields_birthday_select_month %} <div class="form-group col-md-2 col-4"> <wyn-select name="{% if prefix %}{{ prefix }}[birthdayMonth]{% else %}birthdayMonth{% endif %}" class="{% if formViolations.getViolations('/birthdayMonth') is not empty %} is-invalid{% endif %}" {{ config('core.loginRegistration.birthdayFieldRequired') ? 'required' }} > {% if not data.get('birthdayMonth') %} <wyn-option selected disabled value=""> {{ "account.personalBirthdaySelectMonth"|trans|sw_sanitize }} </wyn-option> {% endif %} {% for month in range(1, 12) %} <wyn-option value="{{ month }}" {% if month == data.get('birthdayMonth') %} selected="selected"{% endif %}> {{ month }} </wyn-option> {% endfor %} </wyn-select> {% block component_address_personal_fields_birthday_select_month_error %} {{ parent() }} {% endblock %} </div>{% endblock %}{% block component_address_personal_fields_birthday_select_year %} <div class="form-group col-md-2 col-4"> {% set currentYear = "now"|date('Y') %} {% set startYear = currentYear - 120 %} <wyn-select name="{% if prefix %}{{ prefix }}[birthdayYear]{% else %}birthdayYear{% endif %}" class="{% if formViolations.getViolations('/birthdayYear') is not empty %} is-invalid{% endif %}" {{ config('core.loginRegistration.birthdayFieldRequired') ? 'required' }} > {% if not data.get('birthdayYear') %} <wyn-option selected disabled value=""> {{ "account.personalBirthdaySelectYear"|trans|sw_sanitize }} </wyn-option> {% endif %} {% for year in range(currentYear, startYear) %} <wyn-option value="{{ year }}" {% if year == data.get('birthdayYear') %} selected="selected"{% endif %}> {{ year }} </wyn-option> {% endfor %} </wyn-select> {% block component_address_personal_fields_birthday_select_year_error %} {{ parent() }} {% endblock %} </div>{% endblock %}{% block component_address_personal_account_type_select %} {% if onlyCompanyRegistration or config('core.loginRegistration.showAccountTypeSelection') %} <wyn-select name="{% if prefix %}{{ prefix }}[accountType]{% else %}accountType{% endif %}" id="{{ idPrefix ~ prefix }}accountType" {% if onlyCompanyRegistration %}disabled{% endif %} required class="contact-select" data-form-field-toggle="true" data-form-field-toggle-target=".js-field-toggle-contact-type-company{% if customToggleTarget %}-{{ prefix }}{% endif %}" data-form-field-toggle-value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') }}" data-form-field-toggle-scope="{% if scope == 'parent' %}parent{% else %}all{% endif %}" {% if scope == 'parent' %}data-form-field-toggle-parent-selector={{ parentSelector }}{% endif %} > {% endif %} {% set isCompany = false %} {% if page.address.company or data.company is not empty %} {% set isCompany = true %} {% endif %} {% if onlyCompanyRegistration or (accountType and accountType == constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS')) %} {% set isCompany = true %} {% endif %} {% set isLoginPage = false %} {% if activeRoute == 'frontend.account.login.page' %} {% set isLoginPage = true %} {% endif %} {% if isLoginPage %} <wyn-option disabled selected value=""> {{ "account.personalTypeLabel"|trans|sw_sanitize }}{{ "general.required"|trans|sw_sanitize }} </wyn-option> {% endif %} {% if not onlyCompanyRegistration %} <wyn-option value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_PRIVATE') }}" {% if isCompany == false and isLoginPage == false %} selected{% endif %} > {{ "account.personalTypePrivate"|trans|sw_sanitize }} </wyn-option> {% endif %} <wyn-option value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') }}" {% if isCompany == true and isLoginPage == false %} selected{% endif %} > {{ "account.personalTypeBusiness"|trans|sw_sanitize }} </wyn-option> </wyn-select> {% if onlyCompanyRegistration %}<input type="hidden" name="accountType" value="{{ constant('Shopware\\Core\\Checkout\\Customer\\CustomerEntity::ACCOUNT_TYPE_BUSINESS') }}">{% endif %}{% endblock %}{% block component_address_form_salutation_select %} <wyn-select id="{{ idPrefix ~ prefix }}personalSalutation" class="{% if formViolations.getViolations('/salutationId') is not empty %} is-invalid{% endif %}" name="{% if prefix %}{{ prefix }}[salutationId]{% else %}salutationId{% endif %}" required > {% if not data.get('salutationId') %} <wyn-option disabled selected value=""> {{ "account.personalSalutationPlaceholder"|trans|sw_sanitize }} </wyn-option> {% endif %} {% for salutation in page.salutations %} <wyn-option {% if salutation.id == data.get('salutationId') %}selected{% endif %} value="{{ salutation.id }}" > {{ salutation.translated.displayName }} </wyn-option> {% endfor %} </wyn-select>{% endblock %}