Ecom:CustomerCenter.Carts.Count

Version: 9.8.0 integer  

Summary

Returns the number of carts per page in the cart list.

Settings

The value is based on the selection in the Items per page field in the module settings.

(Page > Paragraph > Module tab > Paging > Items per page)

Examples

Outputting the template tag

@GetInteger("Ecom:CustomerCenter.Carts.Count")

Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:CustomerCenter.Carts.Count"); }

Outputting the template tag

<!--@Ecom:CustomerCenter.Carts.Count-->

Check if integer has a value

<!--@If Defined(@Ecom:CustomerCenter.Carts.Count)--> Let's output this tag here: <strong><!--@Ecom:CustomerCenter.Carts.Count--></strong> <!--@EndIf(@Ecom:CustomerCenter.Carts.Count)-->