AddressValidators
Summary
The AddressValidators loop lets you display validation errors for address fields in the order when address validation is enabled.
Examples
Basic usage
Notice the use of @item.GetValue to get data from the loop variable.
If you just write @GetValue, the data will be taken from outside the loop.
Similarly, you have to use @item.GetLoop to use loops inside a loop.
Check if the loop exists
Example of usage
The following general example illustrates how to use a loop construct.
Check if the loop exists
Available tags
Ecom:Order.AddressValidator.AddressType
Returns the type of address that returns the error. The type is either Billing or Delivery.
@GetString("Ecom:Order.AddressValidator.AddressType")
Ecom:Order.AddressValidator.ErrorMessage
Returns an address validation error, e.g. "Insufficient address information".
@GetString("Ecom:Order.AddressValidator.ErrorMessage")
Ecom:Order.AddressValidator.IsError
Returns True if the address validation provider returns an error.
@GetBoolean("Ecom:Order.AddressValidator.IsError")
Ecom:Order.AddressValidator.ValidatorId
Returns a validator ID.
@GetString("Ecom:Order.AddressValidator.ValidatorId")