Global:eCommerce:Cart.CartIsPresent

globalvalue  

Summary

Returns True if products are added to the Shopping cart.

Settings

The value is generated automatically - otherwise false.

Examples

Outputting the template tag

@GetGlobalValue("Global:eCommerce:Cart.CartIsPresent")

Check if tag has a value

@if(!string.IsNullOrWhiteSpace(GetGlobalValue("Global:eCommerce:Cart.CartIsPresent"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ string storedTag = GetGlobalValue("Global:eCommerce:Cart.CartIsPresent"); }

Outputting the template tag

<!--@Global:eCommerce:Cart.CartIsPresent-->

Check if globalvalue has a value

<!--@If Defined(@Global:eCommerce:Cart.CartIsPresent)--> Let's output this tag here: <strong><!--@Global:eCommerce:Cart.CartIsPresent--></strong> <!--@EndIf(@Global:eCommerce:Cart.CartIsPresent)-->