Ecom:Product.PriceType
Version: - integerSummary
Returns an integer that represents the product price type
Settings
The value is based on the Price calculation dropdown for a product (only available if the product is a parts list).
(Ecommerce > Product Catalog > Shop > Product group > Product > Details > Settings)
Remarks
- Calculated price.
- Fixed price
- [Obsolete type]
- Fixed price plus changes
Examples
Outputting the template tag
@GetInteger("Ecom:Product.PriceType")
Check if tag has a value
@if(!int.IsNullOrWhiteSpace(GetInteger("Ecom:Product.PriceType"))) {
@* Tag has value, so let's do something useful here. *@
}
Assign tag to a value for later use
@{
int storedTag = GetInteger("Ecom:Product.PriceType");
}
Outputting the template tag
<!--@Ecom:Product.PriceType-->
Check if integer has a value
<!--@If Defined(@Ecom:Product.PriceType)-->
Let's output this tag here: <strong><!--@Ecom:Product.PriceType--></strong>
<!--@EndIf(@Ecom:Product.PriceType)-->