Returns the ID for the first page with the Shopping cart module on the current website.
The value is generated automatically.
The tag is only rendered if something is added to the cart.
The tag is a global version of DwAreaCartPageID.
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)-->