Ecom:Order.Weight

Version: - double  

Summary

Returns the total weight of the order.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetDouble("Ecom:Order.Weight")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:Order.Weight-->

Check if double has a value

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