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