Version: - integer  


Returns the number of prices defined for the product.


The value is generated automatically and is based on the defined prices defined on the Prices tab for a product.

(Ecommerce > Product Catalog > Shop > Product group > Product > Prices tab)


Outputting the template tag


Check if tag has a value

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

Assign tag to a value for later use

@{ int storedTag = GetInteger("Ecom:Product.PriceCount"); }

Outputting the template tag


Check if integer has a value

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