Ecom:Product.DefaultVariantComboName
Version: - stringSummary
Returns the default variant Name for the product.
Settings
The value is based on the Default
dropdown on the Variants
tab for a product.
(Ecommerce > Product Catalog > Shop > Product group > Product > Variants tab > Variant groups - Default (primary) variant for main product)
Examples
Outputting the template tag
@GetString("Ecom:Product.DefaultVariantComboName")
Check if tag has a value
@if(!string.IsNullOrWhiteSpace(GetString("Ecom:Product.DefaultVariantComboName"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
string storedTag = GetString("Ecom:Product.DefaultVariantComboName");
}
Outputting the template tag
<!--@Ecom:Product.DefaultVariantComboName-->
Check if string has a value
<!--@If Defined(@Ecom:Product.DefaultVariantComboName)-->
Let's output this tag here: <strong><!--@Ecom:Product.DefaultVariantComboName--></strong>
<!--@EndIf(@Ecom:Product.DefaultVariantComboName)-->