Ecom:Product.ReservedAmount
Version: - doubleSummary
Returns the number of products that is reserved.
Settings
The value is generated automatically.
Remarks
The tag is only working when Minutes the products in cart are reserved - Reserve when product is added to cart is enabled in Management center - eCommerce - Advanced - General.
Examples
Outputting the template tag
@GetDouble("Ecom:Product.ReservedAmount")
Check if tag has a value
@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Product.ReservedAmount"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
double storedTag = GetDouble("Ecom:Product.ReservedAmount");
}
Outputting the template tag
<!--@Ecom:Product.ReservedAmount-->
Check if double has a value
<!--@If Defined(@Ecom:Product.ReservedAmount)-->
Let's output this tag here: <strong><!--@Ecom:Product.ReservedAmount--></strong>
<!--@EndIf(@Ecom:Product.ReservedAmount)-->