Version: - string  


Returns the default variant Name for the product.


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)


Outputting the template tag


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


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)-->