KlarnaCheckout.CheckoutSnippet

Version: - string  

Summary

Returns text defines checkout snipped to render.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("KlarnaCheckout.CheckoutSnippet")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("KlarnaCheckout.CheckoutSnippet"); }

Outputting the template tag

<!--@KlarnaCheckout.CheckoutSnippet-->

Check if string has a value

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