Ecom:Product.Discount.ValidFrom
Version: 9.6.10 dateSummary
Returns the start date of the discount validity.
Settings
The value is based on the Valid from control value in the General section for discount.
(Ecommerce > Discounts&Offers > a discount > General section > Valid from)
Examples
Outputting the template tag
@GetDate("Ecom:Product.Discount.ValidFrom")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetDate("Ecom:Product.Discount.ValidFrom"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetDate("Ecom:Product.Discount.ValidFrom");
}
Outputting the template tag
<!--@Ecom:Product.Discount.ValidFrom-->
Check if date has a value
<!--@If Defined(@Ecom:Product.Discount.ValidFrom)-->
Let's output this tag here: <strong><!--@Ecom:Product.Discount.ValidFrom--></strong>
<!--@EndIf(@Ecom:Product.Discount.ValidFrom)-->