Ecom:VariantOption.[PropertySystemName]

Version: - string  

Summary

Returns the value from the variant property field.

Settings

The value is based on the [Property Name] field in the variant option settings.

(Management Center > Ecommerce settings > Product catalog > Variants > Add/edit Variant > [Property Name])

Examples

Outputting the template tag

@GetString("Ecom:VariantOption.[PropertySystemName]")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetString("Ecom:VariantOption.[PropertySystemName]"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:VariantOption.[PropertySystemName]"); }

Outputting the template tag

<!--@Ecom:VariantOption.[PropertySystemName]-->

Check if string has a value

<!--@If Defined(@Ecom:VariantOption.[PropertySystemName])--> Let's output this tag here: <strong><!--@Ecom:VariantOption.[PropertySystemName]--></strong> <!--@EndIf(@Ecom:VariantOption.[PropertySystemName])-->