Ecom:Order:OrderLine.Price

Version: - price  

Summary

Returns the price of the orderline.

Settings

The value is generated automatically.

Remarks

Includes the option to add price extensions in order to format the product price. See Price extensions (Prefix : Ecom:Order:OrderLine.Price).

Examples

Outputting the template tag

@GetPrice("Ecom:Order:OrderLine.Price")

Check if tag has a value

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

Assign tag to a value for later use

@{ double storedTag = GetPrice("Ecom:Order:OrderLine.Price"); }

Outputting the template tag

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

Check if price has a value

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