Buckaroo.CustomerState

Version: - string  

Summary

Returns customer's state.

Settings

The value can be based on State field in billing section of the cart.

Examples

Outputting the template tag

@GetString("Buckaroo.CustomerState")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Buckaroo.CustomerState"); }

Outputting the template tag

<!--@Buckaroo.CustomerState-->

Check if string has a value

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