Ecom:VariantOption.SortOrder

Version: - integer  

Summary

Returns the sort order of the variant.

Settings

The value is generated automatically.

Remarks

The sort order is set, when the variant options are sorted in the variant settings.

(Management Center > Ecommerce settings > Product catalog > Variants > Sort variants)

Examples

Outputting the template tag

@GetInteger("Ecom:VariantOption.SortOrder")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:VariantOption.SortOrder"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:VariantOption.SortOrder"); }

Outputting the template tag

<!--@Ecom:VariantOption.SortOrder-->

Check if integer has a value

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