Global:eCommerce.CartPageID

Version: - 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")
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Check if tag has a value

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

Assign tag to a value for later use

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

Outputting the template tag

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

Check if globalvalue has a value

<!--@If Defined(@Global:eCommerce.CartPageID)-->
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX