Ecom:Product.VariantLinkGroupShopContext.Clean

Version: - string  

Summary

Returns groupid from a vaiant group that is in the shop context we are in.

Settings

The value is generated automatically.

Remarks

So if there are 3 shops with 3 groups and 1 product is member of all 3 groups and one of the groups are primary, this tag will use the varian groupid from the shop context of the website instead of the primary groupid

Examples

Outputting the template tag

@GetString("Ecom:Product.VariantLinkGroupShopContext.Clean")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Ecom:Product.VariantLinkGroupShopContext.Clean"); }

Outputting the template tag

<!--@Ecom:Product.VariantLinkGroupShopContext.Clean-->

Check if string has a value

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