{# 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() %}

Kundenaccount anlegen

Kundendaten
{% if GetGlobal("ValidateInvoiceAddressCompanyName") == true %} {# b2b shop #}
{% else %} {# not b2b #}
{% endif %}
Rechnungsanschrift
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"; } %}
{# inject country select field with optional stats select field. #} {% SetGlobal("ShippingCountriesListConfig", "registration;" . $_customer->CountryID . ";" . $_customer->StateID); %} {% Container_CheckoutShippingCountriesList() %}
{% {# 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; } %}
Optionale Felder