Returns the amount that the customer has bought for from a selected date.
The value is generated automatically. The date is selected in Bought from date in the module paragraph settings.
(Page > Paragraph > Module tab > Broght from date settings > Bought from date)
Includes the option to add price extensions in order to format the price. See Price extensions (Prefix : Ecom:CustomerCenter.BoughtFromGivenDate).
Outputting the template tag
@GetString("Ecom:CustomerCenter.BoughtFromGivenDate")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:CustomerCenter.BoughtFromGivenDate"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:CustomerCenter.BoughtFromGivenDate");
}
Outputting the template tag
<!--@Ecom:CustomerCenter.BoughtFromGivenDate-->
Check if string has a value
<!--@If Defined(@Ecom:CustomerCenter.BoughtFromGivenDate)-->