{% $_txt_registration = "Registration"; $_txt_invoiceData = "Billing data"; $_txt_mail = "Email address"; $_txt_mail2 = "Repeat email address"; $_txt_password = "Password"; $_txt_password2 = "Repeat password"; $_txt_ust = "VAT ID"; $_txt_birthday = "Birthday"; $_txt_day = "Day"; $_txt_month = "Month"; $_txt_year = "Year"; $_txt_phone = "Phone"; $_txt_invoiceAddress = "Billing address"; $_txt_salution = "Title"; $_txt_mr = "Mr"; $_txt_mrs = "Mrs"; $_txt_family = "Family"; $_txt_company = "Company"; $_txt_firstname = "First name"; $_txt_name = "Surname"; $_txt_additional = "Address addition"; $_txt_hnr = "House number"; $_txt_street = "street"; $_txt_plz = "Postal code"; $_txt_city = "City"; $_txt_country = "Country"; $_txt_optional = "Optional"; $_txt_fax = "Fax"; $_txt_mobile = "Mobile"; $_txt_postNr = "Post number"; $_txt_completeRegistration = "Complete registration"; $_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 %}