Ecom:Order.OrderLines.TotalProductQuantity
Version: - integerSummary
Returns the total count of product items in the current order.
Settings
The value is generated automatically.
Remarks
The number is based on all product order lines in the cart without sales discount lines and tax lines. If you want to include the sales discount lines and/or tax lines you can use one of the other count tags below.
Examples
Outputting the template tag
@GetInteger("Ecom:Order.OrderLines.TotalProductQuantity")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Order.OrderLines.TotalProductQuantity"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Ecom:Order.OrderLines.TotalProductQuantity");
}
Outputting the template tag
<!--@Ecom:Order.OrderLines.TotalProductQuantity-->
Check if integer has a value
<!--@If Defined(@Ecom:Order.OrderLines.TotalProductQuantity)-->
Let's output this tag here: <strong><!--@Ecom:Order.OrderLines.TotalProductQuantity--></strong>
<!--@EndIf(@Ecom:Order.OrderLines.TotalProductQuantity)-->