Ecom:VariantCombination.Product.Name

Version: - string  

Summary

Returns the name of the product variant.

Settings

The value is based on the Name input field under the General tab for a product.

Examples

Outputting the template tag

@GetString("Ecom:VariantCombination.Product.Name")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:VariantCombination.Product.Name"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:VariantCombination.Product.Name"); }

Outputting the template tag

<!--@Ecom:VariantCombination.Product.Name-->

Check if string has a value

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