Ecom:VariantCombination.CartLink

Version: - string  

Summary

Returns a link for adding the product variant to the cart.

Settings

The value is generated automatically.

Remarks

The value is returned as a HTML code snippet.

Examples

Outputting the template tag

@GetString("Ecom:VariantCombination.CartLink")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Ecom:VariantCombination.CartLink-->

Check if string has a value

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