Ecom:Order.AddressValidator.IsError

Version: - boolean  

Summary

Returns True if the address validation provider returns an error.

Settings

The value is generated automatically.

Remarks

Dynamicweb provides an Avalara address validation provider that is used to validate US addresses when using the Avalara tax provider. 
The Avalara address validation provider needs to be enabled in Management center - eCommerce settings - Orders - Address validation in order to render the validation errors.

The InformationAddressValidation.html template that placed in the File Manager in \Templates\eCom7\CartV2\Step contains an example code for address validation.

Examples

Outputting the template tag

@GetBoolean("Ecom:Order.AddressValidator.IsError")

Check if tag has a value

@if(!bool.IsNullOrWhiteSpace(GetBoolean("Ecom:Order.AddressValidator.IsError"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ bool storedTag = GetBoolean("Ecom:Order.AddressValidator.IsError"); }

Outputting the template tag

<!--@Ecom:Order.AddressValidator.IsError-->

Check if boolean has a value

<!--@If Defined(@Ecom:Order.AddressValidator.IsError)--> Let's output this tag here: <strong><!--@Ecom:Order.AddressValidator.IsError--></strong> <!--@EndIf(@Ecom:Order.AddressValidator.IsError)-->