Global:eCommerce.Order.OrderLines.TotalProductQuantity

globalvalue  

Summary

Returns the total number of products in the Shopping Cart.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetGlobalValue("Global:eCommerce.Order.OrderLines.TotalProductQuantity")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:eCommerce.Order.OrderLines.TotalProductQuantity"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:eCommerce.Order.OrderLines.TotalProductQuantity"); }

Outputting the template tag

<!--@Global:eCommerce.Order.OrderLines.TotalProductQuantity-->

Check if globalvalue has a value

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