Ecom:Order:OrderLine.ProductVariantText
Version: - stringSummary
Returns the product variant text for the orderline, e.g. Blue-Small.
Settings
The value is based on the variant settings for the product.
(Ecommerce > Product Catalog > Shop > Product group/product > Variants)
Remarks
Returns an empty string if the product is not a variant.
Examples
Outputting the template tag
@GetString("Ecom:Order:OrderLine.ProductVariantText")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Order:OrderLine.ProductVariantText"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Order:OrderLine.ProductVariantText");
}
Outputting the template tag
<!--@Ecom:Order:OrderLine.ProductVariantText-->
Check if string has a value
<!--@If Defined(@Ecom:Order:OrderLine.ProductVariantText)-->
Let's output this tag here: <strong><!--@Ecom:Order:OrderLine.ProductVariantText--></strong>
<!--@EndIf(@Ecom:Order:OrderLine.ProductVariantText)-->