Ecom:Product.SelectedVariantComboName
Version: - stringSummary
Returns the name of the selected (current) product variant.
Settings
The value is generated automatically.
Examples
Outputting the template tag
@GetString("Ecom:Product.SelectedVariantComboName")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.SelectedVariantComboName"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.SelectedVariantComboName");
}
Outputting the template tag
<!--@Ecom:Product.SelectedVariantComboName-->
Check if string has a value
<!--@If Defined(@Ecom:Product.SelectedVariantComboName)-->
Let's output this tag here: <strong><!--@Ecom:Product.SelectedVariantComboName--></strong>
<!--@EndIf(@Ecom:Product.SelectedVariantComboName)-->