Buckaroo.CustomerCountry
Version: - stringSummary
Returns country of the customer.
Settings
The value can be based on Country field in billing section of the cart.
Examples
Outputting the template tag
@GetString("Buckaroo.CustomerCountry")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Buckaroo.CustomerCountry"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Buckaroo.CustomerCountry");
}
Outputting the template tag
<!--@Buckaroo.CustomerCountry-->
Check if string has a value
<!--@If Defined(@Buckaroo.CustomerCountry)-->
Let's output this tag here: <strong><!--@Buckaroo.CustomerCountry--></strong>
<!--@EndIf(@Buckaroo.CustomerCountry)-->