Ecom:Product.PriceType

Version: - integer  

Summary

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

  1. Calculated price.
  2. Fixed price
  3. [Obsolete type]
  4. 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)-->