Ecom:Order:OrderLine.Quantity

Version: - double  

Summary

Returns the quantity of products for the orderline.

Settings

The value is generated automatically.

Remarks

Can e.g. be used together with a statement with Ecom:Order:OrderLine.IsProduct to hide quantity if orderline is a discount.

Examples

Outputting the template tag

@GetDouble("Ecom:Order:OrderLine.Quantity")

Check if tag has a value

@if(!double.IsNullOrWhiteSpace(GetDouble("Ecom:Order:OrderLine.Quantity"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ double storedTag = GetDouble("Ecom:Order:OrderLine.Quantity"); }

Outputting the template tag

<!--@Ecom:Order:OrderLine.Quantity-->

Check if double has a value

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