Ecom:CustomerCenter.BoughtFromGivenDate

Version: - string  

Summary

Returns the amount that the customer has bought for from a selected date.

Settings

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)

Remarks

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

Examples

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)--> Let's output this tag here: <strong><!--@Ecom:CustomerCenter.BoughtFromGivenDate--></strong> <!--@EndIf(@Ecom:CustomerCenter.BoughtFromGivenDate)-->