{% $_txt_registration = "Registrierung"; $_txt_invoiceData = "Rechnungsdaten"; $_txt_mail = "E-Mail-Adresse"; $_txt_mail2 = "E-Mail-Adresse wiederholen"; $_txt_password = "Passwort"; $_txt_password2 = "Passwort wiederholen"; $_txt_ust = "USt-IdNr"; $_txt_birthday = "Geburtsdatum"; $_txt_day = "Tag"; $_txt_month = "Monat"; $_txt_year = "Jahr"; $_txt_phone = "Telefon"; $_txt_invoiceAddress = "Rechnungsanschrift"; $_txt_salution = "Anrede"; $_txt_mr = "Herr"; $_txt_mrs = "Frau"; $_txt_family = "Familie"; $_txt_company = "Firma"; $_txt_firstname = "Vorname"; $_txt_name = "Name"; $_txt_additional = "Adresszusatz"; $_txt_hnr = "Hausnr."; $_txt_street = "Straße"; $_txt_plz = "PLZ"; $_txt_city = "Ort"; $_txt_country = "Land"; $_txt_optional = "Optionale Felder"; $_txt_fax = "Fax"; $_txt_mobile = "Mobile"; $_txt_postNr = "Postnummer"; $_txt_completeRegistration = "Registrierung abschließen"; $_txt_ = ""; %} {# display HouseNo input before Street input #} {% $_HouseNoFirst = false %} {# get default country id (required for showing mandatory fields depending on country) #} {% $_defaultCountryId = ""; for ( $_country in GetCheckoutShippingCountriesList() ) { if ( $_defaultCountryId == "" ) { $_defaultCountryId = $_country->ShippingCountryID; } } %} {% $_customer = GetCheckoutCustomerInvoiceAddress() %}

$_txt_registration


$_txt_invoiceData

{% if GetGlobal("ValidateInvoiceAddressCompanyName") == true %} {# b2b shop #}
{% else %} {# not b2b #}
{% endif %}
$_txt_invoiceAddress
FormOfAddressID == 0 || $_customer->FormOfAddressID == 1 ) && GetGlobal("ValidateInvoiceAddressFirstName") == true ) || ( $_customer->FormOfAddressID == 2 && GetGlobal("ValidateInvoiceAddressFirstNameIfCompany") == true ) || ( $_customer->FormOfAddressID == 3 && GetGlobal("ValidateInvoiceAddressFirstNameIfFamily") == true ) ) %} data-plenty-validate="text"{% endif %}>
FormOfAddressID != 2 && GetGlobal("ValidateInvoiceAddressLastName") == true ) || ( $_customer->FormOfAddressID == 2 && GetGlobal("ValidateInvoiceAddressLastNameIfCompany") == true ) ) %} data-plenty-validate="text"{% endif %}>
{% if $_HouseNoFirst %} {% $_validate = false; $_validationString = ""; if ( GetGlobal("ValidateInvoiceAddressHouseNumber") == true ) { $_validate = true; $_validationString .= "text"; } else { $_validationString .= "none"; } if ( GetGlobal("ValidateInvoiceAddressStreet") == true ) { $_validate = true; $_validationString .= "text, "; } else { $_validationString .= "none, "; } %}
{% else %} {% $_validate = false; $_validationString = ""; if ( GetGlobal("ValidateInvoiceAddressStreet") == true ) { $_validate = true; $_validationString .= "text, "; } else { $_validationString .= "none, "; } if ( GetGlobal("ValidateInvoiceAddressHouseNumber") == true ) { $_validate = true; $_validationString .= "text"; } else { $_validationString .= "none"; } %}
{% endif %} {% $_validate = false; $_validationString = ""; if ( GetGlobal("ValidateInvoiceAddressZip") == true ) { $_validate = true; $_validationString .= "text, "; } else { $_validationString .= "none, "; } if ( GetGlobal("ValidateInvoiceAddressCity") == true ) { $_validate = true; $_validationString .= "text"; } else { $_validationString .= "none"; } %}
{% {# check for user-selected settings (e.g. after refresh while registering as guest) making optional fields mandatory #} $_additionalFieldsVisible = false; if ( ( $_customer->FormOfAddressID == 2 && GetGlobal("ValidateInvoiceAddressVatIfCompany") == true ) || ( GetGlobal("ValidateInvoiceAddressFaxNumber") == true || ( GetGlobal("ValidateInvoiceAddressFaxNumberIfForeignCustomer") == true && $StoreCountryID != $_defaultCountryId ) ) || ( GetGlobal("ValidateInvoiceAddressMobileNumber") == true || ( GetGlobal("ValidateInvoiceAddressMobileNumberIfForeignCustomer") == true && $StoreCountryID != $_defaultCountryId ) ) || ( GetGlobal("ValidateInvoiceAddressCompanyName") == true && GetGlobal("ValidateInvoiceAddressBirthDate") == true ) || $_customer->FaxNumber != "" || $_customer->MobileNumber != "" || $_customer->Postnummer != "" || ( GetGlobal("ValidateInvoiceAddressCompanyName") == false && $_customer->VATNumber != "" ) || ( GetGlobal("ValidateInvoiceAddressCompanyName") == true && ( $_customer->BirthDay != "" || $_customer->BirthMonth != "" || $_customer->BirthYear != "" ) ) ) { $_additionalFieldsVisible = true; } %}
{# customer properties #} {% $_propertiesAvailable = false; for ( $_check in GetCheckoutCustomerPropertiesList() ) { $_propertiesAvailable = true; $LoopBreak[1]; } %} {# only show if customer properties #} {% if $_propertiesAvailable %} {# show CustomerProperty #}

{% if $Lang=="de" %}Kundenumfrage{% else %}Customer survey{% endif %}

{% for $_customerProperty in GetCheckoutCustomerPropertiesList() %}
PropertyIsMandatory ) %} data-plenty-validate="text"{% endif %}> {# select type #} {% if ( $_customerProperty->PropertyType == 'select' ) %} {% elseif ( $_customerProperty->PropertyType == 'number' ) %} {% elseif ( $_customerProperty->PropertyType == 'customerType' ) %} {% elseif ( $_customerProperty->PropertyType == 'date' ) %} {% elseif ( $_customerProperty->PropertyType == 'longText' ) %} {% else %} {% GetCheckoutCustomerPropertiesInput($_customerProperty->PropertyID, '') %} {% endif %}
{% endfor %}
{% endif %}