Ecom:Order.OrderLines.TotalLinesCount

Version: - integer  

Summary

Returns the count of orderlines in the current order (incl. tax and discount orderlines).

Settings

The value is generated automatically.

Remarks

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.

(The tag is the same as Ecom:Order.OrderLines.Count).

Examples

Outputting the template tag

@GetInteger("Ecom:Order.OrderLines.TotalLinesCount")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Order.OrderLines.TotalLinesCount-->

Check if integer has a value

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