DwAreaCartPageID

integer  

Summary

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

Settings

The value is generated automatically.

Remarks

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

Global:eCommerce.CartPageID is a global version of this tag.

Examples

Outputting the template tag

@GetInteger("DwAreaCartPageID")

Check if tag has a value

@if(!int.IsNullOrWhiteSpace(GetInteger("DwAreaCartPageID"))) { @* Tag has value, so let's do something useful here. *@ }

Assign tag to a value for later use

@{ int storedTag = GetInteger("DwAreaCartPageID"); }

Outputting the template tag

<!--@DwAreaCartPageID-->

Check if integer has a value

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