Ecom:Product.PriceCount
Version: - integerSummary
Returns the number of prices defined for the product.
Settings
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)
Examples
Outputting the template tag
@GetInteger("Ecom:Product.PriceCount")
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
<!--@Ecom:Product.PriceCount-->
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)-->