CheckoutHandler:ErrorMessage

Version: - string  

Summary

Returns text of error message from checkout handler.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("CheckoutHandler:ErrorMessage")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("CheckoutHandler:ErrorMessage"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("CheckoutHandler:ErrorMessage"); }

Outputting the template tag

<!--@CheckoutHandler:ErrorMessage-->

Check if string has a value

<!--@If Defined(@CheckoutHandler:ErrorMessage)--> Let's output this tag here: <strong><!--@CheckoutHandler:ErrorMessage--></strong> <!--@EndIf(@CheckoutHandler:ErrorMessage)-->