Ecom:DiscountValidationResult.ValidTo

Version: 9.9.0 date  

Summary

Returns the end date of the discount validity.

Settings

The value is based on the Valid to control value in the General section for discount

Examples

Outputting the template tag

@GetDate("Ecom:DiscountValidationResult.ValidTo")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetDate("Ecom:DiscountValidationResult.ValidTo"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetDate("Ecom:DiscountValidationResult.ValidTo"); }

Outputting the template tag

<!--@Ecom:DiscountValidationResult.ValidTo-->

Check if date has a value

<!--@If Defined(@Ecom:DiscountValidationResult.ValidTo)--> Let's output this tag here: <strong><!--@Ecom:DiscountValidationResult.ValidTo--></strong> <!--@EndIf(@Ecom:DiscountValidationResult.ValidTo)-->