Ecom:VariantOption.Name

Version: -  

Summary

Returns the name of the variant.

Settings

The value is based on the Name input field under the Attributes tab for a variant group.

Examples

Outputting the template tag

@GetObject("Ecom:VariantOption.Name")

Check if tag has a value

@if(!var.IsNullOrWhiteSpace(GetObject("Ecom:VariantOption.Name"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ var storedTag = GetObject("Ecom:VariantOption.Name"); }

Outputting the template tag

<!--@Ecom:VariantOption.Name-->

Check if object has a value

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