Ecom:Product:Stock.DeliveryUnit
Version: - stringSummary
Returns an unit describing the time of delivery, e.g. "days" or "weeks".
Settings
The value is based on Stock status selection for the product and the Unit field for the stock state.
(Management Center - Ecommerce - Orders - Stock state - Stock state - Status)
Examples
Outputting the template tag
@GetString("Ecom:Product:Stock.DeliveryUnit")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product:Stock.DeliveryUnit"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product:Stock.DeliveryUnit");
}
Outputting the template tag
<!--@Ecom:Product:Stock.DeliveryUnit-->
Check if string has a value
<!--@If Defined(@Ecom:Product:Stock.DeliveryUnit)-->
Let's output this tag here: <strong><!--@Ecom:Product:Stock.DeliveryUnit--></strong>
<!--@EndIf(@Ecom:Product:Stock.DeliveryUnit)-->