Version: - integer  


Returns the total count of items in the current order.


The value is generated automatically.


The number is based on all order lines in the cart including sales discount lines and tax lines. If you do not want to include the sales discount you can use one of the product count tags below.


Outputting the template tag


Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Order.OrderLines.TotalQuantity"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:Order.OrderLines.TotalQuantity"); }

Outputting the template tag


Check if integer has a value

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