Skip to main content

ValidatorCustomerInvoiceAddress

Short description

You can define checks for the invoice address in this template. This validator is called when the invoice address is submitted during the order process.

Template ValidatorCustomerInvoiceAddress

Functions

These functions are available in this container.

GetCheckoutCustomerInvoiceAddressFromRequest() : object
GetCheckoutCustomerPropertiesFromRequest() :
ValidateByAddressDoctor() : bool
ValidateCity() : bool
ValidateCompany() : bool
ValidateConfirmEmail() : bool
ValidateFaxNumber() : bool
ValidateFirstName() : bool
ValidateLastName() : bool
ValidateMobileNumber() : bool
ValidatePassword() : bool
ValidatePhoneNumber() : bool
ValidateStreet() : bool
ValidateVAT() : bool
ValidateZIP() : bool

Examples

{%

	# Example for ValidatorPlaceOrder
	if(!$TermsAndConditionsCheck)
	{
		$_errorCode = 16; # Please read our General Terms and Conditions and confirm them by selecting the choice box.

		AddError($_errorCode);
	}


	# Example for ValidatorCustomerShippingAddress
	$_shippingAddress = GetCheckoutCustomerShippingAddressFromRequest();

	if(strlen($_shippingAddress->FirstName) < 2
		|| strlen($_shippingAddress->LastName) < 2)
	{
		$_errorCode = 39; #Please enter name and surname.

		AddError($_errorCode);
	}

%}
To top