Global:eCommerce.CartPageID

globalvalue  

Summary

Returns the ID for the first page with the Shopping cart module on the current website.

Settings

The value is generated automatically.

Remarks

The tag is only rendered if something is added to the cart. 

The tag is a global version of DwAreaCartPageID.

Examples

Outputting the template tag

@GetGlobalValue("Global:eCommerce.CartPageID")

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

<!--@Global:eCommerce.CartPageID-->

Check if globalvalue has a value

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