Quantity

Version: 9.9.0 string  

Summary

The number of this variant in the cart.

Settings

The value is generated automatically.

Examples

Outputting the template tag

@GetString("Quantity")

Check if tag has a value

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

Assign tag to a value for later use

@{ string storedTag = GetString("Quantity"); }

Outputting the template tag

<!--@Quantity-->

Check if string has a value

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