Ecom:CustomerCenter.BoughtFor12Months

Version: - string  

Summary

Returns the amount that the customer has bought for within the latest 12 months.

Settings

The value is generated automatically.

Remarks

Includes the option to add price extensions in order to format the price. See Price extensions (Prefix : Ecom:CustomerCenter.BoughtFor12Months).

Examples

Outputting the template tag

@GetString("Ecom:CustomerCenter.BoughtFor12Months")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check if tag has a value

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

Assign tag to a value for later use

@{
string storedTag = GetString("Ecom:CustomerCenter.BoughtFor12Months");
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Outputting the template tag

<!--@Ecom:CustomerCenter.BoughtFor12Months-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check if string has a value

<!--@If Defined(@Ecom:CustomerCenter.BoughtFor12Months)-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX