Ecom:Order:OrderLine.IsProduct

Version: - string  

Summary

Returns "True" if the orderline is a product. If not - an empty string is returned (e.g. if it's a discount).

Settings

The value is generated automatically.

Remarks

You can use If Defined to find out if the orderline represents a product or not. This is used to only show e.g. increment/decrement links for products order lines.

Examples

Outputting the template tag

@GetString("Ecom:Order:OrderLine.IsProduct")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Order:OrderLine.IsProduct"); }

Outputting the template tag

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

Check if string has a value

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